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 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: 8619
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: 8619
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
No new posts Looping REXX - unable to interrupt RAVISANKAR07 CLIST & REXX 3 Wed Dec 06, 2017 1:08 pm
No new posts The same REXX program doesnt work for... jackzhang75 CLIST & REXX 5 Wed Dec 06, 2017 2:51 am
No new posts Rexx - File tailoring samzee71 CLIST & REXX 10 Thu Nov 30, 2017 10:47 pm
This topic is locked: you cannot edit posts or make replies. Rexx to Grab ISMF Information. upendrasri All Other Mainframe Topics 16 Sun Nov 26, 2017 12:35 am
No new posts Rexx to send an email without SMTP Se... upendrasri All Other Mainframe Topics 12 Sun Nov 19, 2017 7:59 pm

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