Arun Raj
Moderator
Joined: 17 Oct 2006 Posts: 2481 Location: @my desk
|
|
|
|
Hi all,
I have synctool job which i am using for reporting purposes.
In this, I am multiplying field1 with field2 and writing the result into output.
Code: |
41,4,PD,MUL,45,4,PD,EDIT=(STTTTTTTTT.TT),SIGNS=(,-,,)
|
when field1 = some -ve value and field2 = 0, I am getting the output as
Can I remove the -ve sign for zeroes?
Thanks,
Arun |
|
Arun Raj
Moderator
Joined: 17 Oct 2006 Posts: 2481 Location: @my desk
|
|
|
|
Hi,
Please find the card below
41,4,PD - field1
45,4,PD - field2
Code: |
OPTION COPY
INREC IFTHEN=(WHEN=(45,4,PD,EQ,0),
BUILD=(1,5,10,2,C'/',12,2,C'/',8,2,C',',
19,2,C'/',21,2,C'/',17,2,23,18,C',',
41,4,PD,EDIT=(STTTTTTT),SIGNS=(,-,,),C',',
45,4,PD,EDIT=(TTTTTTT.TT),C', 000000000.00')),
IFTHEN=(WHEN=NONE,
BUILD=(1,5,10,2,C'/',12,2,C'/',8,2,C',',
19,2,C'/',21,2,C'/',17,2,23,18,C',',
41,4,PD,EDIT=(STTTTTTT),SIGNS=(,-,,),C',',
45,4,PD,EDIT=(TTTTTTT.TT),C',',
41,4,PD,MUL,45,4,PD,EDIT=(STTTTTTTTT.TT),SIGNS=(,-,,)))
|
Thanks,
Arun |
|