View previous topic :: View next topic |
Author |
Message |
kanitha-mvs Beginner
Joined: 17 May 2006 Posts: 26 Topics: 17
|
Posted: Thu Oct 12, 2006 6:38 am Post subject: continuation character in rexx |
|
|
Hi,
What is the continuation character to be used in rexx?
for EG, I want to give a value to a variable that exceeds two lines.
Is there any other way other than assigning that to two variables and then concatenating them using pipe command?
Thanks,
Kanitha. |
|
Back to top |
|
 |
superk Advanced

Joined: 19 Dec 2002 Posts: 684 Topics: 5
|
Posted: Thu Oct 12, 2006 7:33 am Post subject: |
|
|
The comma (,). |
|
Back to top |
|
 |
sriramla Beginner
Joined: 22 Feb 2003 Posts: 74 Topics: 1
|
Posted: Thu Oct 12, 2006 7:36 am Post subject: |
|
|
Comma is the continuation character.
Try this:
/* REXX*/
A="ABC1234567890A big string with lot of characters in the middle,
and finally the string ends here"
SAY A |
|
Back to top |
|
 |
ofer71 Intermediate
Joined: 12 Feb 2003 Posts: 358 Topics: 4 Location: Israel
|
Posted: Thu Oct 12, 2006 2:46 pm Post subject: |
|
|
You can simply read about it in the fine manual.
O.
________
starcraft replays
Last edited by ofer71 on Sat Feb 05, 2011 11:51 am; edited 1 time in total |
|
Back to top |
|
 |
garyb Beginner
Joined: 09 Aug 2004 Posts: 2 Topics: 0 Location: Wynantskill, NY
|
Posted: Mon Oct 16, 2006 12:20 pm Post subject: |
|
|
Some things not immediately obvious - all Rexx clauses must end with a semicolon! So, you might be wondering how do all your programs work when you never put semicolons in the code? A line end along with keywords THEN, ELSE and OTHERWISE all imply a semicolon - so you don't need to code them. However, open strings and comments are not affected by the line end so there is no semicolon implied for these. Bottom line is that you don't have to do anything special to continue an open string from one line to the next. In Sriramla's example above, you will see the comma when you display the variable A. Leave the comma out and start the second line with a blank and you should be OK. _________________ Gary |
|
Back to top |
|
 |
|
|