View previous topic :: View next topic
|
Author |
Message |
bonniem
New User
Joined: 09 Aug 2005 Posts: 67
|
|
|
|
Hi,
I want to list datasets say of the pattern using REXX.
Code: |
"ACH.TST*.REXX.JCLS". |
I know we can use the wild card "ACH.*.REXX.JCLS". in and IDCAMS step or in LISTDS and then separate the required result. But in that case the tool will need to be changed if the wild card changes. I need to know if there is a direct way of getting all datasets with a given pattern. |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
Try the ISPF service LMDLIST.
O. |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
Try the ISPF service LMDLIST.
O. |
|
Back to top |
|
|
Mickeydusaor
Active User
Joined: 24 May 2006 Posts: 258 Location: Salem, Oregon
|
|
|
|
Code: |
PARSE UPPER ARG DSN
"LMDINIT LISTID(XQDSLST) LEVEL("DSN")"
"LMDDISP LISTID("XQDSLST")"
IF RC > 0
THEN DO
"SETMSG MSG("ZERRMSG")"
END
"LMDFREE LISTID("XQDSLST")"
EXIT
|
|
|
Back to top |
|
|
|