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 / mr.perfect
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
Will this work?
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
how to refer the data field?
What is the default value(s) for an initialize and what keyword allows for an override of the default?
How do you code cobol to access a parameter that has been defined in jcl? And do you code the parm parameter on the exec line in jcl?
What is a report item?
What is the Purpose of POINTER Phrase in STRING command in COBOL?
what happens if parmparameter passes zero bytes to the program
Can you please let me know the centre name of INS certification in Kolkata.
How many bytes S(8) comp field occupy and its maximum value?
Describe the cobol database components?
Define static linking and dynamic linking.
How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?
In which area will you utilize 88 level items in cobol?
Write a program to enter and display the names of students in a class using the occurs clause.
For rewrite, why is it mandatory that file needs to be opened?
Why is it necessary that file needs to be opened in I-O mode for REWRITE?