IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Call to REXX from REXX


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ap_mainframes

Active User


Joined: 29 Dec 2005
Posts: 181
Location: Canada

PostPosted: Fri Sep 08, 2006 12:16 pm
Reply with quote

Hello,

How to call a REXX routine from another REXX routine???
Back to top
View user's profile Send private message
jon_s_rice

Active User


Joined: 24 Mar 2005
Posts: 102
Location: Douglasville, GA USA

PostPosted: Fri Sep 08, 2006 3:13 pm
Reply with quote

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
View user's profile Send private message
shreevamsi

Active User


Joined: 23 Feb 2006
Posts: 305
Location: Hyderabad,India

PostPosted: Fri Sep 08, 2006 5:13 pm
Reply with quote

hi,

You can also write a REXX routine which invokes a JCl and Submits the REXX program in Batch

~Vamsi
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Fri Sep 08, 2006 8:06 pm
Reply with quote

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
View user's profile Send private message
ap_mainframes

Active User


Joined: 29 Dec 2005
Posts: 181
Location: Canada

PostPosted: Mon Sep 11, 2006 2:06 pm
Reply with quote

Thank you all,
however can anybody tell how do we call a rexx from rexx, using a JCL??
Back to top
View user's profile Send private message
shreevamsi

Active User


Joined: 23 Feb 2006
Posts: 305
Location: Hyderabad,India

PostPosted: Mon Sep 11, 2006 3:59 pm
Reply with quote

hi,
You can user either IKJEFT1A or IRXJCL to execute your rexx in batch mode.

~Vamsi
Back to top
View user's profile Send private message
ap_mainframes

Active User


Joined: 29 Dec 2005
Posts: 181
Location: Canada

PostPosted: Mon Sep 11, 2006 5:00 pm
Reply with quote

Thanks Vamsi,
Can you give some examples??
Back to top
View user's profile Send private message
shreevamsi

Active User


Joined: 23 Feb 2006
Posts: 305
Location: Hyderabad,India

PostPosted: Mon Sep 11, 2006 5:06 pm
Reply with quote

Itz been already discussed in the forum. Please seach
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
No new posts run rexx code with jcl CLIST & REXX 15
Search our Forums:

Back to Top