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 do you attach a DB2 plan to a CIC... John Poulakos DB2 0 Wed Apr 18, 2018 1:49 am
No new posts VSAM file NOT Found error while proce... SumaReva CICS 5 Wed Apr 11, 2018 9:54 pm
No new posts Mantis Program Compiled? luis carlos CICS 2 Sat Apr 07, 2018 8:59 pm
No new posts Undefined Report Program socker_dad COBOL Programming 2 Fri Mar 30, 2018 1:45 am
No new posts java.io.FileNotFoundException - passi... Virendra Shambharkar Java & MQSeries 5 Mon Feb 26, 2018 11:41 am

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