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: 4648
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 SQL query to run through list of valu... Ni3-db2 DB2 14 Wed Dec 14, 2016 9:52 am
No new posts How to update a portion of text in a ... Bill Woodger DFSORT/ICETOOL 25 Wed Nov 09, 2016 9:41 pm
No new posts Cobol list of programs being called biswajit.dattagupta COBOL Programming 5 Tue Nov 01, 2016 2:10 am
No new posts sort with previous record anatol DFSORT/ICETOOL 9 Thu Oct 06, 2016 2:36 am
No new posts Get Record count in summary record fo... Atul Banke DFSORT/ICETOOL 21 Fri Sep 23, 2016 4:17 pm


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