report 1.
*负值负号提前显示方法
*第一種:
data: int1 type i.
data: str1 type string.
int1 = 54 - 43895.
str1 = int1.
shift str1 left deleting leading ' '.
shift str1 up to '-' left circular.
condense str1 no-gaps.
write:/ str1.
*第二種:
data: int1 type i.
data: str1 type string.
int1 = 54 - 43895.
str1 = int1.
call function 'CLOI_PUT_SIGN_IN_FRONT'
changing
value = str1.
write str1.
*第三種:
data: int1 type i.
data: str1 type string.
int1 = 54 - 43895.
str1 = int1.
str1 = abs( int1 ).
concatenate '-' str1 into str1.
write str1.
评论