View previous topic :: View next topic
|
Author |
Message |
anilsanda
New User
Joined: 07 Jun 2007 Posts: 15 Location: chennai
|
|
|
|
i want to know how are the arrays passed between two programs in rexx |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
What do you mean by arrays
Data, parameters. Please specify in more detail exactly what it is you want to know. |
|
Back to top |
|
|
anilsanda
New User
Joined: 07 Jun 2007 Posts: 15 Location: chennai
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Do you mean stem variables ? |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
TG Murphy
Active User
Joined: 23 Mar 2007 Posts: 148 Location: Ottawa Canada
|
|
|
|
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 |
|
|
Mickeydusaor
Active User
Joined: 24 May 2006 Posts: 258 Location: Salem, Oregon
|
|
|
|
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 |
|
|
|