LISTCAT in IDCAMS.

Virtual Storage Access method - ESDS, KSDS, RRDS & LDS. Basic direct access method, Basic sequential -, Queued sequential -, Basic partitioned -, Indexed sequential -, Object - access method.
Post Reply
Nitin Jain
Registered Member
Posts: 20
Joined: Tue Aug 20, 2013 11:33 am

LISTCAT in IDCAMS.

Post by Nitin Jain »

HI,

I am trying to do a specific IDCAMS LISTC. My catalog is as follows:

I need to enlist some of the dataset following some nameing convention. For this, if with the LISTC LVL(XX.**.WW) I get:

Code: Select all

XX.YY.ZZ.WW 
XX.Y1.Z1.WW 
XX.Y3.Z3.WW 
which is fine as the target datasets in the catalog are:

Code: Select all

XX.YY.ZZ.WW 
XX.Y1.Z1.WW 
XX.Y2.C2.WW2 
XX.Y3.C3.WW 
XX.PP.QQ.RR 
But from the above target set, I would also like to be able to pick up XX.Y2.C2.WW2.

If I try to specify LVL(XX.**.WW*), IDCAMS does not accept it and gives an error:

Code: Select all

IDC3568I XX.**.WW* INVALID USE OF * 
Is it possible to accomplish this with IDCAMS? When I looked around in the manuals, it says:
ENTRIES(entryname[ entryname...]) |

LEVEL(level) specifies that all entries that match the level of qualification specified by (level) are to be listed irrespective of the number of additional qualifiers. If a generic level name is specified, only one qualifier replaces the *. The * must not be the last character specified in the LEVEL parameter. LEVEL(A.*) will give you an error message.
If so, can anyone point me to do complete this?
nicc
Global Moderator
Global Moderator
Posts: 691
Joined: Wed Apr 23, 2014 8:45 pm

Re: LISTCAT in IDCAMS.

Post by nicc »

Then add another listcat statement to pick up the different final qualifier.
Regards
Nic
Nitin Jain
Registered Member
Posts: 20
Joined: Tue Aug 20, 2013 11:33 am

Re: LISTCAT in IDCAMS.

Post by Nitin Jain »

I executed two different step of IDCAMS with different qualifiers, not sure if it the best way to do it.
William Collins
Global Moderator
Global Moderator
Posts: 490
Joined: Sun Aug 25, 2013 7:24 pm

Re: LISTCAT in IDCAMS.

Post by William Collins »

Why two steps? You can do multiple commands in one IDCAMS step.
Nitin Jain
Registered Member
Posts: 20
Joined: Tue Aug 20, 2013 11:33 am

Re: LISTCAT in IDCAMS.

Post by Nitin Jain »

Thanks I did not know that. Thanks for the suggestion.
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “SMS & VSAM and BDAM, BSAM, QSAM, BPAM, ISAM, OAM.”