My requirement is, I need to search for a string in all GDG generations(appx 100).
The string is at a specific position.
Is there a way that the search should start from (Latest Gen - 1) up to oldest generation present ???
Is there a way I can get the Generation name in which the string is present ???
I have a working code which searches from the latest gen to oldest gen, and copies the records corresponding to the string to output file.
But I can't know in which gen it's present.
//SYSPRINT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=MY-GDG-BASE,
//FILE1 DD DSN=OUTPUT-FILE-HAVING-RECS-WITH-MY-STRING,
//SYSIN DD *