View previous topic :: View next topic
|
Author |
Message |
nagarajan.dharani
New User
Joined: 27 Dec 2006 Posts: 36 Location: Chennai
|
|
|
|
Hi,
How can I sumsort the field which is delared as S(9) sign Leading Seperate.
For example, the field starting position is 208 and length is 12.
When I give SUM FIELDS=(208,12,ZD) it is giving S0C7
When I gove SUM FIELDS=(207,11,ZD) it is not considering the '-' sign and only it is summing up the value.
Kindly help me.
Thanks,
Dharani. |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
Dharani,
If you look at:
publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/ICE1CA30/C.3?DT=20080528171007
you will see that S(9) LEADING SEPARATE is equivalent to DFSORT's FS format. You can't use that directly in SUM. You can convert the FS value to ZD, SUM it and convert it back to FS. However, it might be easier to use OUTFIL SECTIONS/TRAILER3/TOT with FS instead.
If you show me an example of your input records and what you want for output, I can show you how to do what you want. |
|
Back to top |
|
|
|