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

Merging all of generation of one GDG base


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

New User


Joined: 22 Mar 2010
Posts: 11
Location: india

PostPosted: Wed Jun 09, 2010 3:19 pm
Reply with quote

Hi,

According to my requirement, i need to merge all the Generations of GDG on hourly basis.

No of GDGs available for any perticular hour is unknown. I need to merge what are all available for that particular hour, could be 0 or 1 or.. 255 generations.

could you please suggest me in this regard.

Regards,
KDR
Back to top
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1208
Location: Bangalore,India

PostPosted: Wed Jun 09, 2010 3:33 pm
Reply with quote

Hello KDR,

I think you wnat to merge all the generation of the GDG but If you only specifiy the GDG base on the input DD it would pick up all available generation. I am not sure what would happen if there is a gap in between generations though.Hope I understood your query clearly .
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Wed Jun 09, 2010 4:16 pm
Reply with quote

Obviously you searched the forum before posting NOT as this has been discussed many many times.

I believe that guptae has answered you question for you, although with one exception, the possibility of 0 generations being available when you will experience a JCL error.

However, the testing of the population of a GDG base has also been discussed on this very forum, so I shall leave it to you to have a good search and find the solution for yourself.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Wed Jun 09, 2010 5:11 pm
Reply with quote

Ok, what if when the job which merge "all such generations" is still executing and another generation is cataloged - what do you want to do in that moment of decision?
Back to top
View user's profile Send private message
Phrzby Phil

Senior Member


Joined: 31 Oct 2006
Posts: 1042
Location: Richmond, Virginia

PostPosted: Wed Jun 09, 2010 5:23 pm
Reply with quote

I presume you mean concatenate, rather than merge.

Note that by specifying the GDG base alone, the files are processed in reverse order - so be prepared for that.

Anyone know why IBM does it that way?
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Wed Jun 09, 2010 6:11 pm
Reply with quote

maybe because that's the order in which a catalog search returns them
( just guessing )
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 DFHPI1008 JSON generation failed COBOL Programming 0
No new posts Started task using a generation dataset JCL & VSAM 7
No new posts Merging 2 datasets into one DFSORT/ICETOOL 1
No new posts Report generation JCL & VSAM 18
No new posts How can I get Generation Nbr of GDG f... IBM Tools 1
Search our Forums:

Back to Top