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
 

 

how are the arrays passed between two programs in rexx

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: how are the arrays passed between two programs in rexx
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: 8593
Location: Back in jolly old England

PostPosted: Thu Jun 07, 2007 8:34 pm    Post subject:
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    Post subject:
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: 8593
Location: Back in jolly old England

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

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

Site Director


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

PostPosted: Thu Jun 07, 2007 9:26 pm    Post subject:
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: 149
Location: Ottawa Canada

PostPosted: Fri Jun 08, 2007 12:10 am    Post subject:
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    Post subject:
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    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
This topic is locked: you cannot edit posts or make replies. Calling REXX code from ISPF panel sanchita dey TSO/ISPF 4 Mon Jan 02, 2017 5:13 pm
No new posts REXX DB2: Dynamic allocation of DB2.D... BHAS CLIST & REXX 3 Mon Dec 19, 2016 8:26 pm
No new posts find particular member name in PDS us... ravi243 CLIST & REXX 10 Mon Dec 19, 2016 6:44 pm
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 7 Fri Nov 18, 2016 1:48 pm
No new posts Cobol list of programs being called biswajit.dattagupta COBOL Programming 5 Tue Nov 01, 2016 2:10 am


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