IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search Log in to check your private messages Log in
 

How to check if any of the GDG versions has data?


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

Active User


Joined: 06 Dec 2004
Posts: 211
Location: Keane Inc., Minneapolis USA.

PostPosted: Fri Jun 12, 2015 1:28 am
Reply with quote

Hi All,

I used PRINTCHECK and gave GDG base name as parameter but it is checking only latest GDG version. My requirement is to check if data is present in any of the GDG versions.

Appreciate if any one can help on this.

Thanks,
Reddy
Back to top
View user's profile Send private message
enrico-sorichetti

Senior Member


Joined: 14 Mar 2007
Posts: 10697
Location: italy

PostPosted: Fri Jun 12, 2015 3:23 am
Reply with quote

Quote:
PRINTCHECK

what is that ???
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1788
Location: Bloomington, IL

PostPosted: Fri Jun 12, 2015 4:08 am
Reply with quote

enrico-sorichetti wrote:
Quote:
PRINTCHECK

what is that ???

Perhaps some in-house utility.

Reddy-kun appears unaware that if the GDG base is referred to in the JCL without a relative or an absolute generation (not version) number, all generations (not versions) will be concatenated in (by default) LIFO order.
Back to top
View user's profile Send private message
superk

Global Moderator


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

PostPosted: Fri Jun 12, 2015 5:13 am
Reply with quote

I use the SRCHFOR command in ISPF, or my own home-grown utility (using Syncsort) for large files that I can run in batch and specify a specific location.
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

 

Search our Forum:

Similar Topics
Topic Forum Replies
No new posts How to find which file contains my se... DFSORT/ICETOOL 6
No new posts Changing Data Type SYNCSORT 4
No new posts Copying data from prev record using SORT SYNCSORT 19
No new posts how to get total count from numeric d... SYNCSORT 9
No new posts Map a data element to SPACES if it is 0 COBOL Programming 2

Back to Top