Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
How to pass array between two macros in Rexx?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
MadanVS

New User


Joined: 28 Dec 2010
Posts: 25
Location: Chennai

PostPosted: Thu Jan 13, 2011 2:36 pm    Post subject: How to pass array between two macros in Rexx?
Reply with quote

Hi

My rexx code has two macros. Array is populated in macro1 and macro 2 used the populated array. Can anyone tell me how to pass the array? Number of elements in the array might vary at every execution.

1. I tried with VPUT and VGET with array name.
Code:

 " ISPEXEC VPUT (ARRAY.)


2. I tried with stacks.

Created a New stack and Pushed the elements one by one in macro1.
Tried pulling the values and deleted the stack in Macro 2.
Could not do tat.


Can any one tell how to pass the set of values.

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

dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6968
Location: porcelain throne

PostPosted: Thu Jan 13, 2011 2:50 pm    Post subject:
Reply with quote

start by learning that in REXX there is no such thing as an ARRAY.

REXX has a STEM concept; try using STEM as an argument in your search thru the REXX manuals.

and I imagine that you are miss-ussing the term macro.

as most things on an ibm mainframe, you just can't use your own language and expect others (or manuals) to relate to your jargon.

also, the method of script invokation by a rexx script also comes into play when you are discussing 'passing values'.
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Thu Jan 13, 2011 5:50 pm    Post subject:
Reply with quote

Take a look at files 183 & 411 in CBTTAPE.

O.
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 -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 5 Wed Oct 04, 2017 6:54 am
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 47 Fri Sep 29, 2017 1:08 pm
No new posts ejck thru rexx to multiple jobs insid... Susanta All Other Mainframe Topics 5 Tue Sep 19, 2017 1:39 pm
This topic is locked: you cannot edit posts or make replies. Extract all "IF" Statements... Adarsh Damodaran CLIST & REXX 1 Wed Sep 06, 2017 9:28 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us