Page 1 of 1

LISTCAT with multiple levels

PostPosted: Thu Oct 24, 2013 2:13 am
by rbs1121
Has anyone tried to list catalog entries using multiple levels? For example, I would like to list datasets with the qualifiers like this: AAA.*.*.BBB. I can do it in ISPF 3.4, but I can't get IDCAMS to work with the LISTCAT parameter, using either the ENTRIES or LEVEL parm. Has anyone done this before? Thanks.

Re: LISTCAT with multiple levels

PostPosted: Thu Oct 24, 2013 2:21 am
by Akatsukami
AAA.*.*.BBB is not valid, but LEVEL(AAA.*.BBB) finds names with any number of levels between AAA and BBB.

Re: LISTCAT with multiple levels

PostPosted: Thu Oct 31, 2013 8:00 pm
by rbs1121
I tried that, but it didn't work. This is what I coded: LISTCAT LEVEL (AAA.*.BBB). I have 2 datasets, named AAA.TEST.BBB and AAA.TEST.CCC.BBB. It found only AAA.TEST.BBB. What am I doing wrong? Thanks.

Re: LISTCAT with multiple levels

PostPosted: Thu Oct 31, 2013 8:10 pm
by NicC
You are only asking for one level - even in 3.4 you have to specify each level unless the * comes at the end. suggest you look up the format in the manual.