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

How to add amount between two date ranges


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
gopinathmk

New User


Joined: 17 Nov 2006
Posts: 15

PostPosted: Tue Jan 20, 2009 11:26 pm
Reply with quote

Assume I have following file layout as input


INPUT FILE1 :
SSN Plan Eligible Date Term_date
1234567890 844 20080101 20081212
1234567890 845 20081213 20081231

INPUT FILE2:
SSN PLAN WEEKEND DATE AMOUNT
1234567890 845 20080107 240.0
1234567890 845 20080114 140.0
1234567890 845 20081212 200.0

Now I need to sum the amount for a particular plan using eligible and termdate from first file and need to add amount from second file for same by validating date is in valid range of eligible and term-date.
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Tue Jan 20, 2009 11:35 pm
Reply with quote

It's not clear what you want to do.

Please show your expected output records for your input example, and explain the "rules" for getting from input to output in terms of your example. If there are cases not illustrated by your example, add those cases to the example. Give the RECFM and LRECL of each input file. Give the starting position, length and format of each relevant field.

Please use ubb code tags for your examples.
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 -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Replacing 'YYMMDD' with date, varying... SYNCSORT 3
No new posts Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
No new posts Need to convert date format DFSORT/ICETOOL 20
No new posts Need help to append a date&tsp at... DFSORT/ICETOOL 9
No new posts Fetch data from programs execute (dat... DB2 3
Search our Forums:

Back to Top