View previous topic :: View next topic
|
Author |
Message |
op
New User
Joined: 31 Oct 2006 Posts: 48 Location: Chennai
|
|
|
|
Hi,
Can anyone please tell me how to run a REXX pgm in another REXX pgm.
Please give me the command.
Thanks & regards,
OP |
|
Back to top |
|
|
jon_s_rice
Active User
Joined: 24 Mar 2005 Posts: 102 Location: Douglasville, GA USA
|
|
|
|
use call for example
call program2
or
call program2 arg1,arg2,arg3 |
|
Back to top |
|
|
shreevamsi
Active User
Joined: 23 Feb 2006 Posts: 305 Location: Hyderabad,India
|
|
|
|
hi op,
You can call a REXX pgm from a REXX prm by using CALL
CALL pgmname variables
~Vamsi |
|
Back to top |
|
|
sankarsclm
New User
Joined: 11 Oct 2006 Posts: 4
|
|
|
|
Hi,
You can call REXX pgm in another REXX pgm.
Syntax :
Call Pgmname List of parameters
But understand that
The program you are calling should be in the same PDS where the main program exists.
1) If you are running online the subprogram should be present in any one the PDS Concatenated with SYSPROC and SYSEXEC.
2) If you are running in batch the subprogram should be present in any one the PDS Concatenated with SYSPROC and SYSEXEC given in your Batch JCL
Regards
Sankar |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
Another methods:
1. ADDRESS TSO "%rexx_name"
2. ADDRESS ISPEXEC "SELECT CMD(%rexx_name)"
O. |
|
Back to top |
|
|
|