01 a pic s9(5) value -12345,
if we disply a , the sign will overpunched with last digit
but i need to get the miuns sign in the result?
Answer Posted / saravana
01 A pic s9(5) value -12345
01 B pic -9(5)
PROCEDURE DIVISION
MOVE A TO B
DISPLAY B
STOP RUN
o/P:
-12345
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
what is the use of outrecord?
What is the use of intialize verb?
Is it possible that the redefines clause has different picture clauses compared to the one it redefined?
What are the different open modes available in cobol?
How do you differentiate between cobol and cobol-ii?
Discuss about changing dataset name in proc.
What is the LINKAGE SECTION used in COBOL?
How to know whether the module is dynamical or statistical?
) what is the difference between AID and HANDLE AID?
What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?
When is inspect verb is used in cobol?
Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?
What is the Purpose of Pointer in the string?
What are the different data types in cobol?
) How do u handle errors in BMS macro?