View previous topic :: View next topic |
Author |
Message |
adarsh444 Beginner
Joined: 19 Sep 2006 Posts: 13 Topics: 9
|
Posted: Tue Jun 24, 2008 12:24 am Post subject: job to concatenate gdg's |
|
|
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 |
|
 |
ssk1711 Beginner
Joined: 17 Jun 2008 Posts: 3 Topics: 1
|
Posted: Tue Jun 24, 2008 12:48 am Post subject: |
|
|
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 |
|
 |
CraigG Intermediate
Joined: 02 May 2007 Posts: 202 Topics: 0 Location: Viginia, USA
|
Posted: Tue Jun 24, 2008 2:43 pm Post subject: |
|
|
Versions and GENERATIONs are not the same thing!!! |
|
Back to top |
|
 |
Nic Clouston Advanced
Joined: 01 Feb 2007 Posts: 1075 Topics: 7 Location: At Home
|
Posted: Wed Jun 25, 2008 12:18 pm Post subject: |
|
|
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 |
|
 |
CraigG Intermediate
Joined: 02 May 2007 Posts: 202 Topics: 0 Location: Viginia, USA
|
Posted: Wed Jun 25, 2008 1:43 pm Post subject: |
|
|
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 |
|
 |
Bill Dennis Advanced

Joined: 03 Dec 2002 Posts: 579 Topics: 1 Location: Iowa, USA
|
Posted: Wed Jun 25, 2008 2:43 pm Post subject: |
|
|
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 |
|
 |
|
|