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
 

 

issue in using a GDGwhich has no generations.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
hiravibk
Warnings : 1

Active User


Joined: 14 Dec 2008
Posts: 103
Location: India

PostPosted: Thu May 28, 2009 11:28 am    Post subject: issue in using a GDGwhich has no generations.
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: 8593
Location: Back in jolly old England

PostPosted: Thu May 28, 2009 11:32 am    Post subject:
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: 103
Location: India

PostPosted: Thu May 28, 2009 11:56 am    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Thu May 28, 2009 12:04 pm    Post subject:
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    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 Execessive parameter issue Sumeendar JCL & VSAM 5 Mon Dec 19, 2016 4:35 pm
No new posts DFHRESPONSE returns issue divated CICS 3 Wed Nov 02, 2016 6:32 pm
No new posts Can sending 5 MB data between cobol p... Kevin Vaz CICS 12 Tue Oct 18, 2016 4:50 pm
No new posts Compare each GDG Generations to other... Ayyappa1 JCL & VSAM 13 Tue Jun 28, 2016 1:48 pm
No new posts REXX Screen not working due to LINKED... sundarkudos CLIST & REXX 1 Mon May 09, 2016 1:44 pm


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