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
 
Run a REXX pgm in another REXX pgm...

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
op

New User


Joined: 31 Oct 2006
Posts: 48
Location: Chennai

PostPosted: Thu Nov 30, 2006 3:16 pm    Post subject: Run a REXX pgm in another REXX pgm...
Reply with quote

Hi,

Can anyone please tell me how to run a REXX pgm in another REXX pgm.

Please give me the command.

Thanks & regards,
OP
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: Thu Nov 30, 2006 4:16 pm    Post subject:
Reply with quote

use call for example
call program2
or
call program2 arg1,arg2,arg3
Back to top
View user's profile Send private message
shreevamsi

Active User


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

PostPosted: Thu Nov 30, 2006 4:17 pm    Post subject: Re: Run a REXX pgm in another REXX pgm...
Reply with quote

hi op,

You can call a REXX pgm from a REXX prm by using CALL

CALL pgmname variables

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

New User


Joined: 11 Oct 2006
Posts: 4

PostPosted: Mon Dec 04, 2006 1:31 pm    Post subject:
Reply with quote

Hi,

You can call REXX pgm in another REXX pgm.

Syntax :
Call Pgmname List of parameters

But understand that
The program you are calling should be in the same PDS where the main program exists.
1) If you are running online the subprogram should be present in any one the PDS Concatenated with SYSPROC and SYSEXEC.
2) If you are running in batch the subprogram should be present in any one the PDS Concatenated with SYSPROC and SYSEXEC given in your Batch JCL

Regards
Sankar
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Mon Dec 04, 2006 4:17 pm    Post subject:
Reply with quote

Another methods:

1. ADDRESS TSO "%rexx_name"
2. ADDRESS ISPEXEC "SELECT CMD(%rexx_name)"

O.
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 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
This topic is locked: you cannot edit posts or make replies. Extract all "IF" Statements... Adarsh Damodaran CLIST & REXX 1 Wed Sep 06, 2017 9:28 am

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