View previous topic :: View next topic |
Author |
Message |
CZerfas Intermediate
Joined: 31 Jan 2003 Posts: 211 Topics: 8
|
Posted: Mon Jan 15, 2018 6:45 am Post subject: Listing of dataset names with wildcards |
|
|
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 |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12359 Topics: 75 Location: San Jose
|
Posted: Mon Jan 15, 2018 12:18 pm Post subject: |
|
|
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 |
|
|
CZerfas Intermediate
Joined: 31 Jan 2003 Posts: 211 Topics: 8
|
Posted: Tue Jan 16, 2018 2:14 am Post subject: |
|
|
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 |
|
|
|
|