IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to get list of GDG generation which having only 1 record


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
nileshp

New User


Joined: 25 Feb 2006
Posts: 31

PostPosted: Tue Aug 08, 2006 1:12 pm
Reply with quote

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
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Tue Aug 08, 2006 5:56 pm
Reply with quote

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
View user's profile Send private message
MainframeHelp4_u

New User


Joined: 15 Aug 2006
Posts: 25

PostPosted: Tue Aug 15, 2006 2:21 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts To find whether record count are true... DFSORT/ICETOOL 6
No new posts How to create a list of SAR jobs with... CA Products 3
Search our Forums:

Back to Top