View previous topic :: View next topic
|
Author |
Message |
vasan_4u
New User
Joined: 28 Jun 2005 Posts: 35 Location: chennai
|
|
|
|
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 |
|
|
Douglas Wilder
Active User
Joined: 28 Nov 2006 Posts: 305 Location: Deerfield IL
|
|
|
|
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 |
|
|
vasan_4u
New User
Joined: 28 Jun 2005 Posts: 35 Location: chennai
|
|
|
|
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 |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
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 |
|
|
vasan_4u
New User
Joined: 28 Jun 2005 Posts: 35 Location: chennai
|
|
|
|
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 |
|
|
vasan_4u
New User
Joined: 28 Jun 2005 Posts: 35 Location: chennai
|
|
|
|
I got is working through the VGET and VPUT.
thanks for the help. |
|
Back to top |
|
|
|