View previous topic :: View next topic
|
Author |
Message |
ap_mainframes
Active User
Joined: 29 Dec 2005 Posts: 181 Location: Canada
|
|
|
|
Hello,
How to call a REXX routine from another REXX routine??? |
|
Back to top |
|
|
jon_s_rice
Active User
Joined: 24 Mar 2005 Posts: 102 Location: Douglasville, GA USA
|
|
|
|
To call another ReXX program from a ReXX program use:
call rexxprog or
call rexxorog arg1, arg2, arg3 ...
Under TSO the second ReXX program must reside in the SYSEXEC concatination or the SYSPROC concatination. |
|
Back to top |
|
|
shreevamsi
Active User
Joined: 23 Feb 2006 Posts: 305 Location: Hyderabad,India
|
|
|
|
hi,
You can also write a REXX routine which invokes a JCl and Submits the REXX program in Batch
~Vamsi |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
You can just call by name:
Code: |
/* REXX A */
SAY THIS IS 'A'
B
SAY THIS IS 'A' AGAIN
EXIT 0
/* REXX B */
SAY THIS IS 'B'
EXIT 0
|
During runtime:
Code: |
THIS IS A
THIS IS B
THIS IS A AGAIN
|
|
|
Back to top |
|
|
ap_mainframes
Active User
Joined: 29 Dec 2005 Posts: 181 Location: Canada
|
|
|
|
Thank you all,
however can anybody tell how do we call a rexx from rexx, using a JCL?? |
|
Back to top |
|
|
shreevamsi
Active User
Joined: 23 Feb 2006 Posts: 305 Location: Hyderabad,India
|
|
|
|
hi,
You can user either IKJEFT1A or IRXJCL to execute your rexx in batch mode.
~Vamsi |
|
Back to top |
|
|
ap_mainframes
Active User
Joined: 29 Dec 2005 Posts: 181 Location: Canada
|
|
|
|
Thanks Vamsi,
Can you give some examples?? |
|
Back to top |
|
|
shreevamsi
Active User
Joined: 23 Feb 2006 Posts: 305 Location: Hyderabad,India
|
|
|
|
Itz been already discussed in the forum. Please seach |
|
Back to top |
|
|
|