View previous topic :: View next topic
|
Author |
Message |
useit
Active User
Joined: 05 Oct 2006 Posts: 152
|
|
|
|
Hi,
i am subtracting the two values through jcl sort. syntax is something as below. the value is getting subtracted properly but one challenge is i have to display the sign only if the value is negative. if the value is positive i should not display the sign.
12,9,SFF,SUB,32,9,SFF,EDIT=(STTTTTTTT),SIGNS=(+,-)
for example : -20 , -30
20, 30 (if value is positive)
can someone please help me in this?
Regards,
useit |
|
Back to top |
|
|
useit
Active User
Joined: 05 Oct 2006 Posts: 152
|
|
|
|
hi,
below syntax is resolved my issue.
SIGNS(,-)
but i have another challenge in suppressing the leading zeros.
now i am getting 000000010 or -000000010 but it has to be
10 or -10
how can i suppress the leading zeroes through edit pic clause?
Regards,
Useit |
|
Back to top |
|
|
Rohit Umarjikar
Global Moderator
Joined: 21 Sep 2010 Posts: 3048 Location: NYC,USA
|
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2455 Location: Hampshire, UK
|
|
|
|
No such thing as "jcl sort". |
|
Back to top |
|
|
|