Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Declaring array variables in rexx panels

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
Roshnii

New User


Joined: 30 Sep 2008
Posts: 45
Location: bangalore

PostPosted: Wed May 27, 2009 3:55 pm    Post subject: Declaring array variables in rexx panels
Reply with quote

I'm creating a panel which looks like this
Code:

  ddname       file     disp parameters
1 ______    ________   __ __ ___
2 ______    ________   __ __ ___
3 ______    ________   __ __ ___
4 ______    ________   __ __ ___


Is it possible to decalre these fields like ddname 1, 2 3 and 4 as array variables?

Thanks
Back to top
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10256
Location: italy

PostPosted: Wed May 27, 2009 3:56 pm    Post subject: Reply to: Declaring array variables in rexx panels
Reply with quote

NO
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Wed May 27, 2009 4:06 pm    Post subject:
Reply with quote

But it is possible to convert them to stem variables during the REXX process.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10256
Location: italy

PostPosted: Wed May 27, 2009 9:34 pm    Post subject: Reply to: Declaring array variables in rexx panels
Reply with quote

testing with a panel will take too much time
but here is a code snippet that will assign variables with panel compliant names to stem variables and the other way around

Code:
a1 = "za1"
a2 = "za2"
a3 = "za3"
a4 = "za4"
a5 = "za5"
a6 = "za6"

/* assign a1-6 to stem var */
do   i = 1 to 6
   interpret "a.i = a"i
   say i a.i
end

/* assign stem var to b1-6 */
do   i = 1 to 6
   interpret "b"i "= a.i"
end

say 1 b1
say 2 b2
say 3 b3
say 4 b4
say 5 b5
say 6 b6
Back to top
View user's profile Send private message
Roshnii

New User


Joined: 30 Sep 2008
Posts: 45
Location: bangalore

PostPosted: Fri May 29, 2009 6:36 pm    Post subject:
Reply with quote

Thank you so much for the solutions. This serves my purpose. icon_smile.gif icon_smile.gif
Thanks
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Need help on If condition continuatio... ashok_uddaraju CLIST & REXX 4 Fri May 19, 2017 8:55 am
No new posts Running an REXX EXEC implicitly sho7hills CLIST & REXX 3 Thu Apr 20, 2017 8:14 am
No new posts Need help in REXX CALL program Raje1002 CLIST & REXX 5 Wed Apr 19, 2017 11:18 pm
No new posts REXX cdoe to purge a JOB from spool a... Sulabh Agrawal CLIST & REXX 11 Thu Mar 09, 2017 11:36 am
No new posts Overriding PS data in rexx Shaheen Shaik CLIST & REXX 8 Fri Mar 03, 2017 5:08 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us