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 / david
you will need two variables. Variable A where you put your
computation and variable B which will be displayed:
01 a pic s9(5) value -12345.
01 b pic -9(5).
or 01 b pic -zzzz9.
or 01 b pic 99999-.
or 01 b pic z(5)-.
or 01 b pic ----9.
MOVE A TO B.
DISPLAY B.
| Is This Answer Correct ? | 7 Yes | 0 No |
Post New Answer View All Answers
What are the access modes of START statement?
What is the difference between a binary search and a sequential search what are the pertinent cobol?
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?
What is the Purpose of POINTER Phrase in STRING command in COBOL?
what is search and searchall?what is the diffrence between them?give an best example?
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?
What are the different rules for performing sort operation?
) how do u code after getting data?
How are the next sentence and continue different from each other?
Write a program to explain size error.
What is comp-1 and comp-2?
What are the cobol coding sheets?
What is a scope terminator give example?
What is the difference between perform … with test after and perform … with test before?