View previous topic :: View next topic
|
Author |
Message |
charlessxavier
New User
Joined: 12 Sep 2010 Posts: 4 Location: India
|
|
|
|
We have received a requirement from business wherein a set of records should be held in current day's batch and should be processed after 7 days of hold.
We tried sorting the records to a GDG and then use -5th version for referring the file, but in this method we are suspecting what would happen if the batch is cancelled on any day and the GDG isnt created.
As the records have current date in them, we also tried sysdate minus 7 and check the same, but we require the 7 days difference only for business days excluding weekend.
So, i would like to get some other ideas from you on this.
Thanks in advance. |
|
Back to top |
|
|
sergeyken
Senior Member
Joined: 29 Apr 2008 Posts: 2022 Location: USA
|
|
|
|
What kind of tool is used? COBOL? REXX? SORT? ASSEMBLER? ETC?
When comparing to SYSDATE also use WEEKDAY calculation to modify your offset between (SYSDATE-7), (SYSDATE-8), and (SYSDATE-9)
The most of modern tools include various date calculation functions. |
|
Back to top |
|
|
Arun Raj
Moderator
Joined: 17 Oct 2006 Posts: 2481 Location: @my desk
|
|
|
|
Quote: |
what would happen if the batch is cancelled on any day and the GDG isnt created
|
What is the expectation in this scenario? |
|
Back to top |
|
|
dneufarth
Active User
Joined: 27 Apr 2005 Posts: 420 Location: Inside the SPEW (Southwest Ohio, USA)
|
|
|
|
Does it have to be GDG?
Can the accumulation be in KSDS or DB2?
Extraction/deletion of records can be done programmatically in conjunction with a calendar dataset/table.
As mentioned earlier, not getting records or even getting them twice must be considered based upon how records are batched. |
|
Back to top |
|
|
Phrzby Phil
Senior Member
Joined: 31 Oct 2006 Posts: 1042 Location: Richmond, Virginia
|
|
|
|
If you have spent any time at all reading previous posts on this forum you must know that you are talking about generations, not versions. |
|
Back to top |
|
|
|