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 Trap the jcl error message or maxcc i... ankita agarwal CLIST & REXX 5 Fri May 18, 2018 2:08 pm
No new posts Rexx command to open an another text ... Bharath Vikraman PC Guides & IT News 7 Sat May 12, 2018 4:34 pm
No new posts using CALL PLIRETC(somevalu) Pedro PL/I & Assembler 1 Wed May 09, 2018 10:25 pm
This topic is locked: you cannot edit posts or make replies. GDG gen check using REXX raghuraman123 CLIST & REXX 6 Wed Apr 18, 2018 9:18 pm
No new posts Call COBOL or PLI with a click from w... vaibhav gs All Other Mainframe Topics 1 Mon Apr 16, 2018 7:29 pm

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