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 

REXX - ARRAY concept 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
sivasankaric
Beginner


Joined: 19 Aug 2008
Posts: 4
Topics: 3

PostPosted: Wed Aug 20, 2008 10:53 am    Post subject: REXX - ARRAY concept in REXX Reply with quote

Below rexx code will pick the string located in position 1 to 10 from each line from the input dataset and assign it to the Variable 'X' for display purpose.

I want to store the return result in a variable, say array variable, so that i can use all the output values for my future purpose.

Please advise how to store it in array. Thank You.

/* REXX */
INPT = "XXXXX.XXXX.XXXXX'
"ALLOC FI(IO) DA('"INPT"') SHR REU"
"EXECIO * DISKRU IO (STEM IO.)"
DO B = 1 TO IO.0
X = SUBSTR(IO.B,1,10)
END
SAY X
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