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
This topic is locked: you cannot edit posts or make replies. To remove spaces in a variable length... Selvarajars JCL & VSAM 1 Thu Jun 21, 2018 1:07 pm
No new posts How to Count a particular record in a... Mounika Nemani DFSORT/ICETOOL 5 Tue May 29, 2018 1:07 pm
No new posts Extracting DDL for all list of intere... Ashishpanpaliya DB2 5 Mon May 21, 2018 4:08 pm
No new posts TRAILER3 is creating blank record in ... kodeesm DFSORT/ICETOOL 3 Fri May 18, 2018 5:45 pm
No new posts How to list data set names with diffe... murali.andaluri CLIST & REXX 10 Thu Apr 12, 2018 11:33 pm

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