View previous topic :: View next topic
|
Author |
Message |
brganeshbabu
New User
Joined: 23 Jun 2005 Posts: 34 Location: Chennai
|
|
|
|
Hi,
I want to sum up similar records and sum up two numeric fields (ZD). Below is the screen shot of my input file. Could you please help me in this.
Code: |
----5----+----6----+----7----+----8----+----9----+--
***** Top of Data **********************************
04042010015301007350444544 -720.00 -252.00
04042010015301007350444544 1800.00 630.00
04042010015301007350444544 -1080.00 -378.00
04372010920309000228444544 26100.00 9135.00
04372010920309000228444544 -26100.00 -9135.00
04542070015301009040444544 -33600.00 -11760.00 |
Code'd
Please copy & paste the above file in notepad to get the correct view. I want to sort fields from 1 to 42. If they are similar, the value from 72 to 84 and 85 to 97 (both amount fields). |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
What is the RECFM and LRECL of the input file?
Please show the expected output for your input example. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
Please copy & paste the above file in notepad to get the correct view |
Unnecessary. . . You need to learn to use the "Code" tag
Refer to your original post - it has been "Code"d. . . |
|
Back to top |
|
|
brganeshbabu
New User
Joined: 23 Jun 2005 Posts: 34 Location: Chennai
|
|
|
|
My Record Format is FB and LRECL=97
Dick,
Thanks for the info about "Code" |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
Again:
Quote: |
Please show the expected output for your input example. |
|
|
Back to top |
|
|
|