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 to pass a varaible to another program.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: How to pass a varaible to another program.
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    Post subject:
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    Post subject: Reply to: How to pass a varaible to another program.
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: 2360
Location: Israel

PostPosted: Tue Jan 08, 2008 12:45 pm    Post subject:
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    Post subject:
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    Post subject:
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    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 How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
No new posts Accessing CICS tran with map from JCL... navdeepaggarwal CICS 5 Tue Oct 03, 2017 6:15 pm
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm
No new posts pre-compiler for program in an HFS Pedro DB2 0 Fri Jun 23, 2017 11:13 pm
No new posts Compiling program in endeavor for tra... RALAKKAL Compuware & Other Tools 4 Mon Jun 05, 2017 8:27 pm

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