Page 1 of 1

LISTCAT in IDCAMS.

Posted: Wed Sep 16, 2015 4:08 pm
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?

Re: LISTCAT in IDCAMS.

Posted: Wed Sep 16, 2015 7:41 pm
by nicc
Then add another listcat statement to pick up the different final qualifier.

Re: LISTCAT in IDCAMS.

Posted: Thu Apr 07, 2016 11:58 am
by Nitin Jain
I executed two different step of IDCAMS with different qualifiers, not sure if it the best way to do it.

Re: LISTCAT in IDCAMS.

Posted: Fri Apr 08, 2016 6:19 pm
by William Collins
Why two steps? You can do multiple commands in one IDCAMS step.

Re: LISTCAT in IDCAMS.

Posted: Sat Jun 18, 2016 9:54 am
by Nitin Jain
Thanks I did not know that. Thanks for the suggestion.