IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Using wild cards for data set list.


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
bonniem

New User


Joined: 09 Aug 2005
Posts: 67

PostPosted: Thu Nov 16, 2006 11:26 am
Reply with quote

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
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Thu Nov 16, 2006 12:23 pm
Reply with quote

Try the ISPF service LMDLIST.

O.
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Thu Nov 16, 2006 12:23 pm
Reply with quote

Try the ISPF service LMDLIST.

O.
Back to top
View user's profile Send private message
Mickeydusaor

Active User


Joined: 24 May 2006
Posts: 258
Location: Salem, Oregon

PostPosted: Fri Nov 24, 2006 9:37 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Store the data for fixed length COBOL Programming 1
No new posts Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
No new posts SCOPE PENDING option -check data DB2 2
No new posts How to create a list of SAR jobs with... CA Products 3
No new posts Check data with Exception Table DB2 0
Search our Forums:

Back to Top