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
 

 

Merging all of generation of one GDG base

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Merging all of generation of one GDG base
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: 1187
Location: Bangalore,India

PostPosted: Wed Jun 09, 2010 3:33 pm    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Wed Jun 09, 2010 4:16 pm    Post subject:
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

Senior Member


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

PostPosted: Wed Jun 09, 2010 5:11 pm    Post subject:
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

Active Member


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

PostPosted: Wed Jun 09, 2010 5:23 pm    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10274
Location: italy

PostPosted: Wed Jun 09, 2010 6:11 pm    Post subject: Reply to: Merging all of generation of one GDG base
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    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 SMTP the current generation number of... Jyothi Kulunde JCL & VSAM 4 Thu May 04, 2017 4:08 pm
No new posts Random Password (in string format) ge... ezhavendhan COBOL Programming 10 Mon Aug 29, 2016 3:18 pm
No new posts alphanumeric sequence generation sivaprasad.gadhi COBOL Programming 6 Wed Mar 30, 2016 3:03 am
No new posts alphanumeric sequence generation sivaprasad.gadhi DFSORT/ICETOOL 8 Mon Mar 21, 2016 1:09 am
No new posts Merging of two files siva102 DFSORT/ICETOOL 3 Fri Feb 19, 2016 12:36 pm


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