View previous topic :: View next topic |
Author |
Message |
koolspark Beginner
Joined: 27 May 2010 Posts: 29 Topics: 13
|
Posted: Tue Jul 06, 2010 4:17 am Post subject: GDG concatenation issue |
|
|
hi,
I've a GDG with limit 30. I'm creating a new generation daily(one generation on each working day) and at the end of the month, I am concatenating all these daily generations and writing to a new generation of another(monthly) GDG. My problem is, since working days in a month are not fixed, I may get 20-25 generations in a month. But, I should not copy/concatenate previous months generations. Please advise.
Thanks, |
|
Back to top |
|
|
expat Intermediate
Joined: 01 Mar 2007 Posts: 475 Topics: 9 Location: Welsh Wales
|
Posted: Tue Jul 06, 2010 5:05 am Post subject: |
|
|
What I usually do is to use the GDG base name as input
This will select all existing generations for the copy process.
The next step, conditionally executed will delete all existing generations.
The final step will use IEBGENER to create an empty +1 generation to ensure that at least one generation exists for the next accumulation process. _________________ If it's true that we are here to help others,
then what exactly are the others here for ? |
|
Back to top |
|
|
Anuj Dhawan Intermediate
Joined: 19 Jul 2007 Posts: 298 Topics: 7 Location: Mumbai,India
|
Posted: Tue Jul 06, 2010 5:10 am Post subject: Re: GDG concatenation issue |
|
|
koolspark wrote: | My problem is, since working days in a month are not fixed, I may get 20-25 generations in a month. But, I should not copy/concatenate previous months generations. Please advise. | "concatenate" needs explnation here - How do you concatenate the GDGs? The way expat has told or are you using absolute generation numbers for concatenation? _________________ Regards,
Anuj |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
|
Posted: Tue Jul 06, 2010 10:30 am Post subject: |
|
|
koolspark,
Ideally your scheduling software ( CA- 7 or Jobtrac or Control-M) should handle this without any problem. You would have a daily job which creates the GDG generations and a Month-end job which would read all the GDG and copy them to a new file and delete all the existing daily generations.
If you don't have a scheduling software, then you can do listcat on the GDG base and generate a dynamic JCL which would only pick the current month generations and submit the job via intrdr.
Look at the smart DFSORT trick "Copy GDGs created today" here
http://www.ibm.com/support/docview.wss?rs=114&uid=isg3T700009
You need to slightly change it to use DATE2 which is of YYYYMM format. If you need help for this approach let me know I will code it up for you. _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
|
|
|