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

How to pass a varaible to another program.


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

New User


Joined: 28 Jun 2005
Posts: 35
Location: chennai

PostPosted: Tue Jan 08, 2008 4:09 am
Reply with quote

I need a pass a varaiable to the calling program which will be used by the calling program for some process.

how can I pass a variable from one program to another using rexx both the program are Rexx program.
Back to top
View user's profile Send private message
Douglas Wilder

Active User


Joined: 28 Nov 2006
Posts: 305
Location: Deerfield IL

PostPosted: Tue Jan 08, 2008 4:17 am
Reply with quote

In the calling rexx program put the name of the called rexx followed by a space followed by the parameters. In the called rexx put "Parse Upper Arg parm1 parm2 ..."
Back to top
View user's profile Send private message
vasan_4u

New User


Joined: 28 Jun 2005
Posts: 35
Location: chennai

PostPosted: Tue Jan 08, 2008 7:15 am
Reply with quote

Thanks Now i am able to pass the variable to the called program.

One more help now i need to get the a value back from the called program. In the called program i have a RETURN how can i get the value back to called program.
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Tue Jan 08, 2008 12:45 pm
Reply with quote

If the value is numeric, you can add it to the RETURN instruction, and then you call your program as a function.

Alternatively, you can:
1. Use the queue
2. Save the value in a dataset
3. Use ISPF variables

O.
Back to top
View user's profile Send private message
vasan_4u

New User


Joined: 28 Jun 2005
Posts: 35
Location: chennai

PostPosted: Tue Jan 08, 2008 8:06 pm
Reply with quote

Its not a Numeric value. I am not clear with Queue or the other option you have mentioned could you give me a small example it will of very usefull to me.
Back to top
View user's profile Send private message
vasan_4u

New User


Joined: 28 Jun 2005
Posts: 35
Location: chennai

PostPosted: Tue Jan 08, 2008 9:45 pm
Reply with quote

I got is working through the VGET and VPUT.

thanks for the help.
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 Using API Gateway from CICS program CICS 0
No new posts DB2 Event passed to the Application P... DB2 1
No new posts How to pass the PARM value to my targ... COBOL Programming 8
No new posts Dynamically pass table name to a sele... DB2 2
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
Search our Forums:

Back to Top