View previous topic :: View next topic
|
Author |
Message |
cvadlamudi
New User
Joined: 19 Apr 2007 Posts: 68 Location: India
|
|
|
|
Hi,
Please someone throw light on this
I have a inputfile in the below format
Input file
AA0001.75
AA0000.25
AA0000.15
BB0000.50
BB0000.75
CC0000.25
Output file
AA0002.15
BB0001.25
CC0000.25
I have to sumup the data of AA in 1 record, BB in 1 record and CC in 1 record.
Regards,
Mouli |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
Back to top |
|
|
sudhakar84
New User
Joined: 20 Jun 2008 Posts: 25 Location: chennai
|
|
|
|
have u tried giving PD instead of ZD |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
Quote: |
have u tried giving PD instead of ZD |
Have you? If you did, you'd have found out that it results in an S0C7 abend.
Why would you possibly think that PD would work for a value of the form 'dddd.dd'? That is NOT a PD value (or even a ZD value). A positive 7-byte PD value looks like this in hex:
'dddd.dd' looks like this in hex:
Do those look the same to you?
The internal representation of a PD value cannot have a decimal point. (The decimal point can be implied and added for external display.)
Dick has given a link to the correct Smart DFSORT Trick to handle this situation.
Posting misinformation without testing your "theory" really doesn't help anyone. We have two DFSORT developers answering questions in this Forum (myself and Kolusu) so we really don't need your "help". |
|
Back to top |
|
|
cvadlamudi
New User
Joined: 19 Apr 2007 Posts: 68 Location: India
|
|
|
|
Thanks a lot dick, it works fine for me. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Good to hear it is working - thank you for letting us know
d |
|
Back to top |
|
|
|