Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
Getting REXX library programatically

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
Author Message
pav001

New User


Joined: 02 Nov 2005
Posts: 25

PostPosted: Fri Dec 09, 2005 6:02 pm    Post subject: Getting REXX library programatically
Reply with quote

I need to submit a jcl from a rexx program. This jcl will have a step to run another REXX program. Before running the REXX from jcl (using IKJEFT01) I need to define SYSEXEC as a DD name which points to my REXX library. As of now i have hard coded this as :

QUEUE '//REXXSTEP EXEC PGM=IKJEFT01,REGION=4M'
QUEUE '//SYSEXEC DD DISP=SHR,DSN=ACT7562.LIB.REXX'
( ACT7562 is my MF id,I write the queue to a file and submit it),
but in place of hard coding the REXX library as above I want to derive it through REXX so that my REXX can be run on other systems (with a different REXX library) without modifications.

PAV
Back to top
View user's profile Send private message
References
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 3383
Location: Charlotte,NC USA

PostPosted: Fri Dec 09, 2005 7:27 pm    Post subject: Re: Getting REXX library programatically
Reply with quote

If I'm understanding your requirements correctly, you'll probably want to use the TSO LISTA command, trap the results, and read through the listing until you find all of the datasets allocated to the SYSEXEC DD and/or the SYSPROC DD.

There is nothing I can think of within REXX itself that can do this for you.
Back to top
View user's profile Send private message
mak_tcs

Active User


Joined: 23 Nov 2005
Posts: 76
Location: Minneapolis, MN USA

PostPosted: Mon Dec 12, 2005 10:47 am    Post subject:
Reply with quote

Dear Pav,
Please check the following:

myid = userid() -->This will assign the users mainframe id to myid

rxlib= myid||".LIB.REXX"

QUEUE '//REXXSTEP EXEC PGM=IKJEFT01,REGION=4M'
QUEUE '//SYSEXEC DD DISP=SHR,DSN='rxlib','

Please let me know if I cud help you further.
Thanks,
Mani
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1