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 

continuation character in rexx

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
kanitha-mvs
Beginner


Joined: 17 May 2006
Posts: 26
Topics: 17

PostPosted: Thu Oct 12, 2006 6:38 am    Post subject: continuation character in rexx Reply with quote

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
View user's profile Send private message
superk
Advanced


Joined: 19 Dec 2002
Posts: 684
Topics: 5

PostPosted: Thu Oct 12, 2006 7:33 am    Post subject: Reply with quote

The comma (,).
Back to top
View user's profile Send private message
sriramla
Beginner


Joined: 22 Feb 2003
Posts: 74
Topics: 1

PostPosted: Thu Oct 12, 2006 7:36 am    Post subject: Reply with quote

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
View user's profile Send private message
ofer71
Intermediate


Joined: 12 Feb 2003
Posts: 358
Topics: 4
Location: Israel

PostPosted: Thu Oct 12, 2006 2:46 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
garyb
Beginner


Joined: 09 Aug 2004
Posts: 2
Topics: 0
Location: Wynantskill, NY

PostPosted: Mon Oct 16, 2006 12:20 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF 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