Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Call to REXX from REXX

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: Call to REXX from REXX
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    Post subject:
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    Post subject:
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

Moderator Team Head


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

PostPosted: Fri Sep 08, 2006 8:06 pm    Post subject: Re: Call to REXX from REXX
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    Post subject:
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    Post subject:
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    Post subject:
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    Post subject:
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    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 REXX cdoe to purge a JOB from spool a... Sulabh Agrawal CLIST & REXX 11 Thu Mar 09, 2017 11:36 am
No new posts Overriding PS data in rexx Shaheen Shaik CLIST & REXX 8 Fri Mar 03, 2017 5:08 pm
No new posts REXX compiled via RXTCOMP sergeyken CLIST & REXX 7 Tue Feb 07, 2017 9:41 pm
This topic is locked: you cannot edit posts or make replies. Calling REXX code from ISPF panel sanchita dey TSO/ISPF 4 Mon Jan 02, 2017 5:13 pm
No new posts REXX DB2: Dynamic allocation of DB2.D... BHAS CLIST & REXX 3 Mon Dec 19, 2016 8:26 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us