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
What is the utilization of copybook in cobol? Could we utilize a similar copybook?
What is the difference between structured cobol programming and object alternativelyiented cobol programming?
Differentiate between structured cobol programming and object-oriented cobol programming.
What is the difference between a binary search and a sequential search what are the pertinent cobol?
how do you reference the variable unblock file formats from cobol programs
How you can characterize tables in cobol?
Can you please let me know the centre name of INS certification in Kolkata.
What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?
How to remove 2 duplicate records and copy only one using job control language?
input 1 input2 ouput1 output2 output 3 1 re 300 1 re 200 1 re 300 3 rc 500 1 re 200 2 rr 400 1 re 300 2 rr 400 1 rc 400 3 rc 500 1 rc 400 2 rr 700 2 rr 700 5 tt 900 5 tt 900 2 inputs r in flat file and output 1 is matched records,ouptput2 is unmatched of input1,output3 is unmatched of input2! how vl u get the output files using sequential order and to check with each and every records! let me know the procedure division ?
What is the default value(s) for an initialize? What keyword will allow for an override of the default?
A table has two indexes defined. Which one will be used by the SEARCH?
Mention the guidelines to write a structured cobol program?
i want a program using by if, evaluate , string, unstring, perform, occurs?
Why would you use find and get rather than to obtain?