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
 
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: 4650
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 IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
No new posts How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 5 Wed Oct 04, 2017 6:54 am
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 47 Fri Sep 29, 2017 1:08 pm
No new posts ejck thru rexx to multiple jobs insid... Susanta All Other Mainframe Topics 5 Tue Sep 19, 2017 1:39 pm

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