Get GDG versions in a file.
-
- Registered Member
- Posts: 34
- Joined: Sun Sep 01, 2013 4:56 pm
Get GDG versions in a file.
hi all,
i am expecting to pull all gdg versions in a file using the gdg base names, can anyone help me same?
i am expecting to pull all gdg versions in a file using the gdg base names, can anyone help me same?
Re: Get GDG versions in a file.
Hello.
You just specify the GDG base name as input without anything in parentheses after it:
You just specify the GDG base name as input without anything in parentheses after it:
Code: Select all
//INPUT DD DSN=yourid.gdgbase,DISP=SHR
- enrico-sorichetti
- Global Moderator
- Posts: 843
- Joined: Wed Sep 11, 2013 3:57 pm
Re: Get GDG versions in a file.
the TS does NOT want to process all the generations
he wants to pull all the generations names into a file
he wants to pull all the generations names into a file
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
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

Re: Get GDG versions in a file.
enrico-sorichetti wrote: ↑Mon Nov 11, 2024 3:17 pm the TS does NOT want to process all the generations
he wants to pull all the generations names into a file
As in
?
Code: Select all
LISTCAT LEVEL(basename)
- enrico-sorichetti
- Global Moderator
- Posts: 843
- Joined: Wed Sep 11, 2013 3:57 pm
Re: Get GDG versions in a file.
yess
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
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

-
- Registered Member
- Posts: 34
- Joined: Sun Sep 01, 2013 4:56 pm
Re: Get GDG versions in a file.
zum13enrico-sorichettithe TS does NOT want to process all the generations
he wants to pull all the generations names into a file
As in
?Code: Select all
LISTCAT LEVEL(basename)
Thank you , this is what I am looking for. Is there a view to remove, the messages LISTCAT produces automatcally?
Re: Get GDG versions in a file.
DFSORT can do it. Something along these lines should give you just the dataset names:
Code: Select all
//STEP1 EXEC PGM=IDCAMS
//SYSPRINT DD DSN=&TEMP1,DISP=(NEW,PASS,DELETE),
// DCB=(LRECL=133,RECFM=VBA),SPACE=(TRK,1)
//SYSIN DD *
LISTCAT LEVEL(gdgbase)
//*
//STEP2 EXEC PGM=SORT
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=&TEMP1,DISP=(OLD,DELETE,DELETE)
//SORTOUT DD SYSOUT=*,DCB=(LRECL=44,RECFM=F)
//SYSIN DD *
INCLUDE COND=(6,7,CH,EQ,C'NONVSAM')
OUTFIL OUTREC=(22,44),VTOF
SORT FIELDS=COPY
-
- Registered Member
- Posts: 34
- Joined: Sun Sep 01, 2013 4:56 pm
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