IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

how are the arrays passed between two programs in rexx


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
anilsanda

New User


Joined: 07 Jun 2007
Posts: 15
Location: chennai

PostPosted: Thu Jun 07, 2007 8:28 pm
Reply with quote

i want to know how are the arrays passed between two programs in rexx
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Jun 07, 2007 8:34 pm
Reply with quote

What do you mean by arrays

Data, parameters. Please specify in more detail exactly what it is you want to know.
Back to top
View user's profile Send private message
anilsanda

New User


Joined: 07 Jun 2007
Posts: 15
Location: chennai

PostPosted: Thu Jun 07, 2007 9:04 pm
Reply with quote

i want to know how ,the data which is stored in an array in a program to be sent to another rexx program where the recieved data is also stored as an array.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Jun 07, 2007 9:15 pm
Reply with quote

Do you mean stem variables ?
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Jun 07, 2007 9:26 pm
Reply with quote

Hello anilsanda and welcome to the forums,

Please keep in mind that while your question is quite clear to you, it may not be to others.

If you can give an example of what you have and what you want to do, that will help.
Back to top
View user's profile Send private message
TG Murphy

Active User


Joined: 23 Mar 2007
Posts: 148
Location: Ottawa Canada

PostPosted: Fri Jun 08, 2007 12:10 am
Reply with quote

Anilsanda,

I have not yet discovered a way to pass "arrays" from one Rexx program to another. I don't believe there is a way to do it using Rexx exclusively but --- I hope that somebody can tell me I'm wrong on that.

As expat pointed out, in Rexx an array is actually a stem variable. Let's say your program uses the following variables:

id.0
id.1
id.2
id.3
counter
name

In our mind, we think of the id variables as belonging to an array. But in many ways REXX treats each id variable as being separate and unrelated variables.

Sometimes I will pack repeating data into a single REXX variable and pass the variable. Dirty but it works...
Back to top
View user's profile Send private message
Mickeydusaor

Active User


Joined: 24 May 2006
Posts: 258
Location: Salem, Oregon

PostPosted: Fri Jun 08, 2007 1:45 am
Reply with quote

If you are wanting to pass data between Rexx programs, I would
use the QUEUE command, you also would want to look at NEWSTACK
and DELSTACK, the PULL commands. You can not pass a STEM array
between Rexx programs. There are 2 assembler programs on the CBT
website call STEMPULL and STEMPUSH that will allow for this function.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
No new posts run rexx code with jcl CLIST & REXX 15
Search our Forums:

Back to Top