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

How can i call the rexx from different data set ?


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

Active User


Joined: 09 Jun 2014
Posts: 125
Location: US

PostPosted: Thu Nov 13, 2014 2:45 am
Reply with quote

Hi,

I had the rexx A and this program will call other rexx . If i want to put REXX A in the sys2.clistlib and other rexx program are in different data set (My own rexx libary). How can i make it work ?

REXX A
Code:
MYARG=userid()                         
call WHO                               
name=result                           
ADDRESS ISPEXEC                       
DO WHILE RC=0                         
"DISPLAY PANEL (PANEL)"               
 IF RC <> 8 THEN DO                   
  SELECT                               
    WHEN option='1' THEN rc=REX2CA()   
    WHEN option='2' THEN rc=REX2CRP() 
    WHEN option='3' THEN rc=REX2DIF() 
    WHEN option='4' THEN rc=REX2FAST()
    WHEN option='5' THEN rc=REX2JCLP()
    WHEN option='6' THEN rc=REX2PKZ() 
    WHEN option='7' THEN rc=REX2SS()   
    WHEN option='T' THEN rc=REX2TEST()
    WHEN option='R' THEN rc=REXRMAIN()


Thanks
Back to top
View user's profile Send private message
Paul Voyner

New User


Joined: 26 Nov 2012
Posts: 52
Location: UK

PostPosted: Thu Nov 13, 2014 1:02 pm
Reply with quote

Well, there are several ways. This is one of them.

Code:
mylib = 'UID.MY.EXEC'

Act:
Address "TSO"
"ALLOC FILE(SYSUEXEC)  DA('"mylib"') SHR REUSE"
"ALTLIB ACTIVATE APPLICATION (EXEC) FILE(SYSUEXEC)  "
... your code ....
Deact:
"ALTLIB DEACTIVATE APPLICATION(EXEC)"
"FREE FILE(SYSUEXEC )
Back to top
View user's profile Send private message
jackzhang75

Active User


Joined: 09 Jun 2014
Posts: 125
Location: US

PostPosted: Thu Nov 13, 2014 7:34 pm
Reply with quote

Thank you very much !

It works perfect !
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 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
No new posts Execute secondary panel of sdsf with ... CLIST & REXX 1
Search our Forums:

Back to Top