Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 4650
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 query to fetch record which has only ... maxsubrat DB2 12 Mon Dec 11, 2017 5:03 pm
No new posts Extract record for change in combinat... Trinadh DFSORT/ICETOOL 6 Thu Nov 23, 2017 3:32 pm
No new posts Extract Record using range of Data scorp_rahul23 DFSORT/ICETOOL 3 Wed Nov 15, 2017 11:54 pm
No new posts Squeeze record left so that zeroes ar... Vignesh Sid SYNCSORT 5 Fri Nov 10, 2017 1:40 pm
No new posts Formatting multiple records to a sing... Vignesh Sid SYNCSORT 3 Tue Nov 07, 2017 12:22 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us