View previous topic :: View next topic |
Author |
Message |
yadav2005 Intermediate

Joined: 10 Jan 2005 Posts: 348 Topics: 144
|
Posted: Mon Jan 28, 2008 4:45 am Post subject: PLI Repeat Function |
|
|
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 |
|
 |
vkphani Intermediate

Joined: 05 Sep 2003 Posts: 483 Topics: 48
|
|
Back to top |
|
 |
Nic Clouston Advanced
Joined: 01 Feb 2007 Posts: 1075 Topics: 7 Location: At Home
|
Posted: Mon Jan 28, 2008 5:01 am Post subject: |
|
|
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 |
|
 |
Grant Beginner
Joined: 02 Dec 2002 Posts: 45 Topics: 1 Location: Sydney, NSW, Australia
|
Posted: Mon Jan 28, 2008 8:54 pm Post subject: |
|
|
Yadav2005,
It's functioning as designed. I suggest you look at the Language Reference Manual. |
|
Back to top |
|
 |
|
|