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

How to get the Current Date while Unloading data ?


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
srini_igsi
Currently Banned

New User


Joined: 09 Dec 2005
Posts: 30
Location: Pune

PostPosted: Tue Aug 01, 2006 2:00 pm
Reply with quote

A client is having two groups (Group A and Group B).

Group A benefit period is 1/1/2006 (start dt) - 12/31/2006 (end dt).
Group B benefit period is 2/1/2006 start dt) - 1/31/2007 (end dt).

The requirement is 'Allow reporting of prior and current benefit periods for a given member during a "transition" period (Jan - March, 90 days from the expiration of the benefit period)'.

The logic to be included in the Control Card of the Unload JCL is ... 'Benefit start date <= current date and (benefit end date + 90 days) >= current date'.

So the logic which I have to include in the UNLOAD JCL is selecting al the records satisfying the said condition.
Back to top
View user's profile Send private message
DavidatK

Active Member


Joined: 22 Nov 2005
Posts: 700
Location: Troy, Michigan USA

PostPosted: Tue Aug 01, 2006 8:33 pm
Reply with quote

Hi Reddy,

I'm not sure exactly what your question is!

The pseudo code you provided will give you all rows where the benifit start date is prior to the current date, and the benifit end date is greater than or equal to 90 days in the past.

Please come back with a clarification of your question.

Dave
Back to top
View user's profile Send private message
srini_igsi
Currently Banned

New User


Joined: 09 Dec 2005
Posts: 30
Location: Pune

PostPosted: Tue Aug 01, 2006 10:17 pm
Reply with quote

Hi David,

Do you mean that the function Current Date is acceptable inside the control card. This is what I wanted to know.

I just want to convert the pseudocode into logic and then I have to include the same inside the control card.
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 -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Replacing 'YYMMDD' with date, varying... SYNCSORT 3
No new posts Store the data for fixed length COBOL Programming 1
No new posts Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
No new posts Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
No new posts SCOPE PENDING option -check data DB2 2
Search our Forums:

Back to Top