IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Create the generation daily and it will continue for year


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
i413678
Currently Banned

Active User


Joined: 19 Feb 2005
Posts: 112
Location: chennai

PostPosted: Wed Jul 12, 2006 11:21 am
Reply with quote

Hi,

I have a requirement like the following:

I have to create the generation daily and it will continue for the whole year. and if I started today and if next month is starting i need to delete all the current months generations and start creating new generations from 1st onwards and this process continues like this............

means whenever a new month starts it has to delete previous months generations and it has to start creating generations of that new month.....means always i should have only current month generations.....

I hope requirement is clear

plz plz suggest a way............

thx in advance..................

pavan
Back to top
View user's profile Send private message
Hanfur

Active User


Joined: 21 Jun 2006
Posts: 104

PostPosted: Wed Jul 12, 2006 12:26 pm
Reply with quote

I feel its better to have a job setup which delete/purge the existing GDG base and recreate GDG base with LIMIT as 31 at the month end(Monthly job).

This job should be scheduled to run on every month ends.

Then the normal daily jobs as per the schedule can create new versions from that month starting subsequently..

-Han.
Back to top
View user's profile Send private message
Rupa.P.V
Warnings : 1

New User


Joined: 04 Jul 2006
Posts: 30

PostPosted: Wed Jul 12, 2006 3:49 pm
Reply with quote

Hi all,

Ya i think better to include a step to delete the GDG base and recreate the GDG base ....
And this should run in every month end.

Thanks....
Back to top
View user's profile Send private message
i413678
Currently Banned

Active User


Joined: 19 Feb 2005
Posts: 112
Location: chennai

PostPosted: Thu Jul 13, 2006 10:46 am
Reply with quote

Hi All,

Thank you for all your help.

pavan
Back to top
View user's profile Send private message
sivaram.ch

New User


Joined: 28 Jun 2005
Posts: 11

PostPosted: Thu Jul 13, 2006 11:04 am
Reply with quote

Here every month won't have that 31days. if we given 31 is the limit

Examp: Feb month only have 28 or 29 days then march first 3 days transactions will be in feb GDG base


How can we handle this situation.


Thanks
Back to top
View user's profile Send private message
Hanfur

Active User


Joined: 21 Jun 2006
Posts: 104

PostPosted: Thu Jul 13, 2006 11:44 am
Reply with quote

This Purge/recreate job has to be scheduled as the month end job.If it's Feb 28th or 29th's based on whether its a leap year or not your jobs has to be added to a particular group.

Most shope Schedulers and have different groupName which runs jobs on diffrent frequencies.You have to check it and have to add your job correspondigly to that group to ensure that this process happens on every month end.

-Han.



-Han.
Back to top
View user's profile Send private message
jasorn
Warnings : 1

Active User


Joined: 12 Jul 2006
Posts: 191
Location: USA

PostPosted: Thu Jul 13, 2006 6:56 pm
Reply with quote

Just want to make sure the purge job is run after ALL the things from the month that will use it are complete. So it's after month end and prep for month begin.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts How to create a list of SAR jobs with... CA Products 3
No new posts DFHPI1008 JSON generation failed COBOL Programming 0
No new posts Started task using a generation dataset JCL & VSAM 7
No new posts create rexx edit Macro that edits the... CLIST & REXX 3
No new posts How to extract the data for current y... DFSORT/ICETOOL 8
Search our Forums:

Back to Top