IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

issue in using a GDGwhich has no generations.


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

Active User


Joined: 14 Dec 2008
Posts: 107
Location: India

PostPosted: Thu May 28, 2009 11:28 am
Reply with quote

Hi All,

I have a requirement where in i need to count the number of pages of a report file which is the latest generation of a GDG in an eazy trieve module. But if the GDG has no generations, my program throws a JCL error 'GDG XXXX contaons no generatiopns'. Is there any method to overcome this isssue? If the GDG has no generations the page count for that report should be zero.
Thank you,
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu May 28, 2009 11:32 am
Reply with quote

There are various ways to check if a base has associated generations. This was recently discussed on the forum not more than two or three weeks ago.
Back to top
View user's profile Send private message
hiravibk
Warnings : 1

Active User


Joined: 14 Dec 2008
Posts: 107
Location: India

PostPosted: Thu May 28, 2009 11:56 am
Reply with quote

Hi Expat,
expat wrote:
There are various ways to check if a base has associated generations. This was recently discussed on the forum not more than two or three weeks ago.

I understand that we can get the GDG base/assosiation details by scaning the listcat utilities output.
But my next step is to count the number of pages in the last generation of GDG, which i am doing using an eazytrievw module. My idea was to compare the last modified date of a GDG(which i got by scanning listcat output) with the system date and if they are not equal i move 0 to the page count variable , and if the dates are same i will count the number of pages in the latest generation. But in both cases i need to mentions the gdg.xxx.gen(0) as the INFILE for the eazytrieve module, which throws a JCL error saying GDG has no generations. Please help me if there is any idea to solve this..

Thank you,
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu May 28, 2009 12:04 pm
Reply with quote

Take a look at THIS thread.
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

 


Similar Topics
Topic Forum Replies
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Issue after ISPF copy to Linklist Lib... TSO/ISPF 1
No new posts Facing ABM3 issue! CICS 3
No new posts Panvalet - 9 Character name - Issue c... CA Products 6
No new posts Issue with EXEC CICS QUERY SECURITY c... CICS 6
Search our Forums:

Back to Top