MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Listing of dataset names with wildcards

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
CZerfas
Intermediate


Joined: 31 Jan 2003
Posts: 211
Topics: 8

PostPosted: Mon Jan 15, 2018 6:45 am    Post subject: Listing of dataset names with wildcards Reply with quote

I need to create a list of cataloged datasets in batch with a search-mask using wildcards as in the ADRDSSU-DUMP syntax, e.g.
QUALI1.QUALI2.*.D%%%%%%.T%%%%%%

I tried IDCAMS listcat, but that one doesn't allow the "%".

I tried HRECALL, but that one doesn't produce a proper list of the touched datasets

I looked für something in the ADRDSSU-context, but any command does real work with the qualifying datasets, and that I don't want to happen; I just need the list of existing dataset names for the search pattern.

Do you have any suggestions?

with kind regards
Christian
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12358
Topics: 75
Location: San Jose

PostPosted: Mon Jan 15, 2018 12:18 pm    Post subject: Reply with quote

CZerfas,

Try the following

Code:

//STEP0100 EXEC PGM=IDCAMS                       
//SYSPRINT DD SYSOUT=*                           
//SYSIN    DD *                                   
  LISTCAT LEVEL(QUALI1.QUALI2.*.D%%%%%%.T%%%%%%)   
//*

_________________
Kolusu - DFSORT Development Team (IBM)
DFSORT is on the Web at:
www.ibm.com/storage/dfsort

www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
CZerfas
Intermediate


Joined: 31 Jan 2003
Posts: 211
Topics: 8

PostPosted: Tue Jan 16, 2018 2:14 am    Post subject: Reply with quote

Hello Kolusu,

thank you for your answer. Pitty, I just looked at ENTRIES with listcat. Now I have datasets with additional qualifiers in the resulting list, but I can filter those out with the coding that receives this list as input.

with kind regards
Christian
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group