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
 

 

How to get the Current Date while Unloading data ?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
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    Post subject: How to get the Current Date while Unloading data ?
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    Post subject: Re: How to get the Current Date while Unloading data ?
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    Post subject: Re: How to get the Current Date while Unloading data ?
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    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts copying data without knowing location arunsoods DFSORT/ICETOOL 6 Thu Jul 20, 2017 1:03 pm
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Loading data to table gives wrong for... Raghu navaikulam DB2 19 Thu Jul 13, 2017 2:11 pm
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts SQL - select data available in index Nileshkul DB2 3 Mon Jun 26, 2017 1:30 am


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