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
 
How can i call the rexx from different data set ?

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

Active User


Joined: 09 Jun 2014
Posts: 117
Location: windsor

PostPosted: Thu Nov 13, 2014 2:45 am    Post subject: How can i call the rexx from different data set ?
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: 51
Location: Switz

PostPosted: Thu Nov 13, 2014 1:02 pm    Post subject: Reply to: How can i call the rexx from different data set ?
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: 117
Location: windsor

PostPosted: Thu Nov 13, 2014 7:34 pm    Post subject:
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    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 Moving a COMP-3 Variable to a Numeric... ajayachander COBOL Programming 2 Thu Dec 14, 2017 5:46 pm
No new posts Looping REXX - unable to interrupt RAVISANKAR07 CLIST & REXX 3 Wed Dec 06, 2017 1:08 pm
No new posts The same REXX program doesnt work for... jackzhang75 CLIST & REXX 5 Wed Dec 06, 2017 2:51 am
No new posts Rexx - File tailoring samzee71 CLIST & REXX 10 Thu Nov 30, 2017 10:47 pm
This topic is locked: you cannot edit posts or make replies. Rexx to Grab ISMF Information. upendrasri All Other Mainframe Topics 16 Sun Nov 26, 2017 12:35 am

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