Wilcards in LISTCAT command using IDCAMS



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

Wilcards in LISTCAT command using IDCAMS

Postby nasrahdus » Wed Jul 30, 2014 1:03 pm

Hi all,

I am using the following JCL to find a list of GDG bases and their properties

//STEP     EXEC PGM=IDCAMS   
//SYSIN    DD *             
 LISTCAT ENTRIES(abc.x.*)  GDG ALL
//SYSPRINT DD SYSOUT=*       
//*                         


This displays only gdgs with 3 qualifiers, eg. abc.x.abc, abc.x.acdbg

But I could find GDG bases with upto 5 qualifiers in my DASD and also the 3rd and 4th qualfiers are varied,and so am not able to group.

Is there way to display the list of bases with qualifiers 4 and more. Tried abc.x.**, abc.x.%, abc.x.- and all of these seems invalid. Some help would be appreciated. Thanks in adavance
nasrahdus
 
Posts: 4
Joined: Wed Jul 30, 2014 12:54 pm
Has thanked: 2 times
Been thanked: 0 time

Re: Wilcards in LISTCAT command using IDCAMS

Postby BillyBoyo » Wed Jul 30, 2014 2:53 pm

http://pic.dhe.ibm.com/infocenter/zos/v ... amsr11.htm

I can't check it at the moment, as it is not currently working, but I assume that is temporary.
BillyBoyo
Global moderator
 
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 265 times

Re: Wilcards in LISTCAT command using IDCAMS

Postby nasrahdus » Wed Jul 30, 2014 4:35 pm

It isn't working as of now.. Have bookmarked it.. Will check and let you know ..Thanks for your time :)
nasrahdus
 
Posts: 4
Joined: Wed Jul 30, 2014 12:54 pm
Has thanked: 2 times
Been thanked: 0 time

Re: Wilcards in LISTCAT command using IDCAMS

Postby Robert Sample » Thu Jul 31, 2014 6:38 am

Have you tried
//STEP     EXEC PGM=IDCAMS   
//SYSIN    DD *             
 LISTCAT LEVELS(abc.x)  GDG ALL
//SYSPRINT DD SYSOUT=*       
//*

These users thanked the author Robert Sample for the post:
nasrahdus (Fri Aug 01, 2014 9:34 am)
Robert Sample
Global moderator
 
Posts: 3719
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times

Re: Wilcards in LISTCAT command using IDCAMS

Postby nasrahdus » Thu Jul 31, 2014 5:13 pm

Yep.. Have tried it.. It doesn't do an extensive search.. It just searches for the dataset name mentioned inside the braces
nasrahdus
 
Posts: 4
Joined: Wed Jul 30, 2014 12:54 pm
Has thanked: 2 times
Been thanked: 0 time

Re: Wilcards in LISTCAT command using IDCAMS

Postby Robert Sample » Fri Aug 01, 2014 7:34 am

Odd -- LEVEL (as opposed to ENTRIES as you posted) is supposed to do extended search. When I get a chance, I'll do more checking.

These users thanked the author Robert Sample for the post:
nasrahdus (Fri Aug 01, 2014 9:34 am)
Robert Sample
Global moderator
 
Posts: 3719
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times

Re: Wilcards in LISTCAT command using IDCAMS

Postby nasrahdus » Fri Aug 01, 2014 9:33 am

Ooopsy...My bad.. It works awesome Robert :) Thanks a lot.. The qualifier I gave the previous day actually didn't have any datasets in DASD and so wrongly inferred the results... :facepalm:
nasrahdus
 
Posts: 4
Joined: Wed Jul 30, 2014 12:54 pm
Has thanked: 2 times
Been thanked: 0 time


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post