MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

job to concatenate gdg's

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
adarsh444
Beginner


Joined: 19 Sep 2006
Posts: 13
Topics: 9

PostPosted: Tue Jun 24, 2008 12:24 am    Post subject: job to concatenate gdg's Reply with quote

A daily job runs and a GDG generation is created every day.On the last day of the month, the job should rerun with all the generations created , by concatenating to a single GDG generation.Can anyone suggest how to automate this so that end of month job runs with all the input files that are succesfully created by daily job. Thank in advance.
Back to top
View user's profile Send private message
ssk1711
Beginner


Joined: 17 Jun 2008
Posts: 3
Topics: 1

PostPosted: Tue Jun 24, 2008 12:48 am    Post subject: Reply with quote

Hi,

You can create a monthly job that will do the work for you.

For concatinating GDG versions in the monthly job,

1)if u have all the versions in the same gdg, there is no need to specify any version..

//gdgfile dd dsn=ggg.vvv.nn, disp=shr

This will concatenate all the versions in the gdg ggg.vvv.nn.

2)If you need only specific versions then you have to specify the individual versions.

//gdgfile dd dsn=ggg.vvv.nn(0), disp=shr
// DD dsn=ggg.vvv.nn(-1), disp=shr
// DD dsn=ggg.vvv.nn(-2), disp=shr
// DD dsn=ggg.vvv.nn(-3), disp=shr



i think this will do
Back to top
View user's profile Send private message
CraigG
Intermediate


Joined: 02 May 2007
Posts: 202
Topics: 0
Location: Viginia, USA

PostPosted: Tue Jun 24, 2008 2:43 pm    Post subject: Reply with quote

Rolling Eyes Versions and GENERATIONs are not the same thing!!!
Back to top
View user's profile Send private message
Nic Clouston
Advanced


Joined: 01 Feb 2007
Posts: 1075
Topics: 7
Location: At Home

PostPosted: Wed Jun 25, 2008 12:18 pm    Post subject: Reply with quote

However, ssk1711 is correct - just specify the gdg base and ALL generations cataloged will be concatenated together. You will have to uncat/delete after processing so that each month starts at G0001V00.
_________________
Utility and Program control cards are NOT, repeat NOT, JCL.
Back to top
View user's profile Send private message
CraigG
Intermediate


Joined: 02 May 2007
Posts: 202
Topics: 0
Location: Viginia, USA

PostPosted: Wed Jun 25, 2008 1:43 pm    Post subject: Reply with quote

Nic Clouston wrote:
However, ssk1711 is correct - just specify the gdg base and ALL generations cataloged will be concatenated together. You will have to uncat/delete after processing so that each month starts at G0001V00.


Unless you delete and redefine the base that won't set the generation back to 1 but it will get the files out of the catalog so they won't be there next month.
Back to top
View user's profile Send private message
Bill Dennis
Advanced


Joined: 03 Dec 2002
Posts: 579
Topics: 1
Location: Iowa, USA

PostPosted: Wed Jun 25, 2008 2:43 pm    Post subject: Reply with quote

CraigG wrote:
Unless you delete and redefine the base that won't set the generation back to 1 .......
If all generations are uncataloged, the next generation will be G0001V00. The base doesn't need to be redefined.
_________________
Regards,
Bill Dennis

Disclaimer: My comments on this foorum are my own and do not represent the opinions or suggestions of any other person or business entity.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group