View previous topic :: View next topic
|
Author |
Message |
kratos86
Active User
Joined: 17 Mar 2008 Posts: 148 Location: Anna NGR
|
|
|
|
Hi,
i have a requirement to sum the total and write the o/p
i/p file is
Code: |
00000000000010A
00000000000012M |
o/p if the total is negative
o/p if the total is positive
but the o/p i recieve is not handling the sign values
Code: |
000000000000023
000000000000077 |
code i used is
Code: |
OUTFIL FNAMES=SYSUT2,NODETAIL,REMOVECC,
TRAILER1=(1:TOT=(02,15,ZD,EDIT=(TTTTTTTTTTTTTTT))) |
pls. assist me... |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
It's handling the sign exactly as you told it to (not at all). EDIT=(TTTTTTTTTTTTTTT) does not contain a sign. If you want the total to be ZD values with a C sign for plus and a D sign for minus, use these DFSORT statements:
Code: |
OPTION COPY
OUTFIL FNAMES=SYSUT2,NODETAIL,REMOVECC,
TRAILER1=(1:TOT=(02,15,ZD,TO=ZDC,LENGTH=15))
|
|
|
Back to top |
|
|
kratos86
Active User
Joined: 17 Mar 2008 Posts: 148 Location: Anna NGR
|
|
|
|
Thanks Frank, it worked |
|
Back to top |
|
|
|