| IBM MAINFRAME HELP & SUPPORT FORUMS Technical Forums for IBM Mainframe Applications like COBOL, JCL, CICS, DB2, FileAid, DFSORT, Endevor, Xpediter, CoolGen, CA-7&11, AbendAid, IMS, IDMS, PL/I, MqSeries, SyncSort, Assembler, ChangeMan, Easytrieve, InterTest, REXX, CLIST etc...
|
| View previous topic :: View next topic |
| Author |
Message |
pav001
Joined: 02 Nov 2005
Posts: 25
|
| Posted: Fri Dec 09, 2005 6:02 pm Post subject: Getting REXX library programatically |
|
|
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 |
|
superk
Joined: 26 Apr 2004
Posts: 3304
Location: Charlotte,NC USA
|
| Posted: Fri Dec 09, 2005 7:27 pm Post subject: Re: Getting REXX library programatically |
|
|
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 |
|
mak_tcs
Joined: 23 Nov 2005
Posts: 76
Location: Minneapolis, MN USA
|
| Posted: Mon Dec 12, 2005 10:47 am Post subject: |
|
|
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 |
|
| |
THIS IS AN ARCIVE FORUM IN READ ONLY MODE. IF YOU WANT TO ASK YOUR DOUBTS USE THE ACTUAL FORUM
|