Page 1 of 1

List only Non-GDG datasets using IDCAMS.

Posted: Sat Sep 19, 2015 2:49 pm
by Technocrat
The LISTCAT ENT(dataset.name) ALL lista all the GDG information. It also lists the NON-VSAM dataset information which qualifies for the name in brackets. I need a way to eliminate all GDG information and get only sequential dataset information.

Can LISTCAT command be modified to eliminate all GDG information and VSAM information and get only the NON-VSAM dataset information which are not GDGs ?

Re: List only Non-GDG datasets using IDCAMS.

Posted: Sat Sep 19, 2015 3:00 pm
by enrico-sorichetti
LISTCAT cannot be modified,
But You can build Your own <LISTCAT> , with more flexible filtering using REXX and IGGCSI00

SYS1.SAMPLIB has a working example

Re: List only Non-GDG datasets using IDCAMS.

Posted: Sat Sep 19, 2015 5:34 pm
by zprogrammer
Or Also another option trap the output and take/store only the data you need and IIRC, I think that what happens in
IGGCSI00

Re: List only Non-GDG datasets using IDCAMS.

Posted: Sun Sep 20, 2015 3:51 am
by enrico-sorichetti
I think that what happens in IGGCSI00
NOPE ;)
80% of the work is done by defining properly the extraction/listing rules

as soon as I will be able to IPL my system I will post an example

Re: List only Non-GDG datasets using IDCAMS.

Posted: Sun Sep 20, 2015 8:20 am
by zprogrammer
Ah Thanks Enrico :)

Re: List only Non-GDG datasets using IDCAMS.

Posted: Sun Sep 20, 2015 8:23 am
by zprogrammer
I got confused with the program which was in CBT , it could be used to find out information about it from 3.4 option