Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: How to get list of GDG generation which having only 1 record
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

Moderator Team Head


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

PostPosted: Tue Aug 08, 2006 5:56 pm    Post subject: Re: How to get list of GDG generation which having only 1 re
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    Post subject: How to get list of GDG generation which having only 1 record
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Need to write record of PS File in ex... Chandan1993 JCL & VSAM 1 Wed Jun 07, 2017 1:35 am
No new posts member list compare jzhardy TSO/ISPF 6 Fri May 12, 2017 3:18 pm
No new posts Adding big TEXT lines to each record ... bshkris SYNCSORT 4 Sat May 06, 2017 1:40 am
No new posts SMTP the current generation number of... Jyothi Kulunde JCL & VSAM 4 Thu May 04, 2017 4:08 pm
This topic is locked: you cannot edit posts or make replies. Merge two files and update Trailer re... Yashashri JCL & VSAM 1 Thu May 04, 2017 12:54 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us