View previous topic :: View next topic
|
Author |
Message |
Marso
REXX Moderator
Joined: 13 Mar 2006 Posts: 1353 Location: Israel
|
|
|
|
A REXX program runs from a JCL:
Code: |
//FILEIN DD DISP=SHR,DSN=HLQ.SPF.COBOL(INPPROG)
//FILEOUT DD DISP=SHR,DSN=HLQ.SPF.TEMP(OUTPROG)
//SYSTSIN DD *
ISPSTART CMD(MYREXX)
/* |
The REXX program need to get the name associated to the FILEIN DD (in that case "HLQ.SPF.COBOL(INPPROG)").
Is there a way to do that ? |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
LISTDSI with the FILE option. |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
Or DSINFO.
O. |
|
Back to top |
|
|
Marso
REXX Moderator
Joined: 13 Mar 2006 Posts: 1353 Location: Israel
|
|
|
|
DSINFO seems to need the DSN as parameter.
LISTDSI is close enough and gives me the dataset name but not the member name.
I will use the "LISTALC STATUS" command. Scanning the result is a bit heavier than I wanted but it answers my needs.
Thx guys |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
My mistke. I meant that you can use LMINIT with DDNAME to initiate a data id, then use it in LMQUERY to get the dataset name.
O. |
|
Back to top |
|
|
|