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 

GDG concatenation issue

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
koolspark
Beginner


Joined: 27 May 2010
Posts: 29
Topics: 13

PostPosted: Tue Jul 06, 2010 4:17 am    Post subject: GDG concatenation issue Reply with quote

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
View user's profile Send private message
expat
Intermediate


Joined: 01 Mar 2007
Posts: 475
Topics: 9
Location: Welsh Wales

PostPosted: Tue Jul 06, 2010 5:05 am    Post subject: Reply with quote

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
View user's profile Send private message
Anuj Dhawan
Intermediate


Joined: 19 Jul 2007
Posts: 298
Topics: 7
Location: Mumbai,India

PostPosted: Tue Jul 06, 2010 5:10 am    Post subject: Re: GDG concatenation issue Reply with quote

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
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12376
Topics: 75
Location: San Jose

PostPosted: Tue Jul 06, 2010 10:30 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities 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