List only Non-GDG datasets using IDCAMS.

JES2/3, JCL, utilities.
Post Reply
Technocrat
Registered Member
Posts: 31
Joined: Thu Oct 03, 2013 1:32 pm

List only Non-GDG datasets using IDCAMS.

Post 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 ?
Regards
enrico-sorichetti
Global Moderator
Global Moderator
Posts: 826
Joined: Wed Sep 11, 2013 3:57 pm

Re: List only Non-GDG datasets using IDCAMS.

Post 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
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort 8-)
zprogrammer
Global Moderator
Global Moderator
Posts: 588
Joined: Wed Nov 20, 2013 11:53 am
Location: Mars

Re: List only Non-GDG datasets using IDCAMS.

Post 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
zprogrammer
enrico-sorichetti
Global Moderator
Global Moderator
Posts: 826
Joined: Wed Sep 11, 2013 3:57 pm

Re: List only Non-GDG datasets using IDCAMS.

Post 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
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort 8-)
zprogrammer
Global Moderator
Global Moderator
Posts: 588
Joined: Wed Nov 20, 2013 11:53 am
Location: Mars

Re: List only Non-GDG datasets using IDCAMS.

Post by zprogrammer »

Ah Thanks Enrico :)
zprogrammer
zprogrammer
Global Moderator
Global Moderator
Posts: 588
Joined: Wed Nov 20, 2013 11:53 am
Location: Mars

Re: List only Non-GDG datasets using IDCAMS.

Post 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
zprogrammer
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 “JCL - Job Control Language.”