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 add amount between two date ranges

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
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    Post subject: How to add amount between two date ranges
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 Moderator


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

PostPosted: Tue Jan 20, 2009 11:35 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Date and time format in CICS Chandru3183 CICS 2 Sat Mar 18, 2017 12:46 pm
No new posts How to get current date -1 and curren... murali.andaluri DFSORT/ICETOOL 3 Wed Mar 08, 2017 2:09 pm
No new posts Overlay the system date Danielle.Filteau SYNCSORT 4 Fri Mar 03, 2017 1:16 am
No new posts Checking Current date vickey_dw DFSORT/ICETOOL 1 Wed Feb 08, 2017 11:14 pm
No new posts TOT & DATE parameter in ICEMAN hemanthj642 DFSORT/ICETOOL 4 Mon Nov 14, 2016 5:19 am


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