MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

PLI Repeat Function

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
yadav2005
Intermediate


Joined: 10 Jan 2005
Posts: 348
Topics: 144

PostPosted: Mon Jan 28, 2008 4:45 am    Post subject: PLI Repeat Function Reply with quote

Hai,

I am trying to use REPEAT Builtin Function as below and can anyone help me why i am getting 3 times WALLA as the output.
Code:

          DCL CITY CHAR(15);                 
          CITY = REPEAT('WALLA',2);           
          PUT SKIP LIST ('CITY :',CITY);     



CITY :                  WALLAWALLAWALLA

Back to top
View user's profile Send private message
vkphani
Intermediate


Joined: 05 Sep 2003
Posts: 483
Topics: 48

PostPosted: Mon Jan 28, 2008 4:57 am    Post subject: Reply with quote

Check the below link.

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/C2714602/19.198?DT=20020917160741
Back to top
View user's profile Send private message Send e-mail
Nic Clouston
Advanced


Joined: 01 Feb 2007
Posts: 1075
Topics: 7
Location: At Home

PostPosted: Mon Jan 28, 2008 5:01 am    Post subject: Reply with quote

If you look at the PL/1 Language Reference manual in chapter 19 you will find BIFs. Look at REPEAT (section 198) it refers you to COPY (section 44) for an example. Work it out from there!
_________________
Utility and Program control cards are NOT, repeat NOT, JCL.
Back to top
View user's profile Send private message
Grant
Beginner


Joined: 02 Dec 2002
Posts: 45
Topics: 1
Location: Sydney, NSW, Australia

PostPosted: Mon Jan 28, 2008 8:54 pm    Post subject: Reply with quote

Yadav2005,
It's functioning as designed. I suggest you look at the Language Reference Manual.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group