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
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?
How are the next sentence and continue different from each other?
what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.
How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?
What is Pic 9v99 Indicates in COBOL?
How to print 10 to 1 if the input have only 10 digit number?
How to know whether the module is dynamical or statistical?
In COBOL programming, what is PERFORM? What is VARYING?
What the difference is between continue and next sentence?
What is the difference between comp and comp-3 usage?
What is cobol?
What is rmode(24)
) How do u handle errors in BMS macro
What are different data types in cobol?
What is the problem of ordered sequential files access?