Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Create the generation daily and it will continue for year

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Create the generation daily and it will continue for year
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    Post subject: Hi
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    Post subject:
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    Post subject:
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    Post subject:
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    Post subject: Hi
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

Active User


Joined: 12 Jul 2006
Posts: 153
Location: USA

PostPosted: Thu Jul 13, 2006 6:56 pm    Post subject: Re: Create the generation daily and it will continue for yea
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Unable to create multiple files using... mbattu COBOL Programming 3 Fri May 05, 2017 5:35 pm
No new posts SMTP the current generation number of... Jyothi Kulunde JCL & VSAM 4 Thu May 04, 2017 4:08 pm
No new posts copy SEQ to PDS and create stats steve-myers JCL & VSAM 7 Thu Apr 27, 2017 1:15 am
No new posts SORT to append Month and YEAR in MMYY... tisamf DFSORT/ICETOOL 1 Wed Mar 08, 2017 4:46 pm
No new posts 2 byte YEAR from Y'DATE2' field tecnokrat DFSORT/ICETOOL 2 Tue Feb 07, 2017 12:05 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us