View previous topic :: View next topic
|
Author |
Message |
nileshp
New User
Joined: 25 Feb 2006 Posts: 31
|
|
|
|
Hi group,
I am having 256 generation of GDG. Some of them contains only single record like
"HEADER"
and some contains records like
01 dsfds sdf 1254
02 sdf df 4512
HEADER
I want find out which generation contains only HEADER and which generation contains some other records along with HEADER.
I want to do this with the help of JCL.
Please help me. |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
Seems like you need to:
1. Create a list of all datasets in the generation data group.
2. For each dataset, allocate and open.
3. Read the contents and verify if it only has 1 record. If so, write the name of that dataset to a report.
4. Close the dataset, free the dataset. then repeat steps 2-4 until end of the list is reached. |
|
Back to top |
|
|
MainframeHelp4_u
New User
Joined: 15 Aug 2006 Posts: 25
|
|
|
|
Please provide some more information to answer u r query:
1) Is HEADER is common in 256 Generations or no?
If So, what d u want to do with the GDG versions..
Cheers
Friend |
|
Back to top |
|
|
|