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 / anil prajapati
For displaying sign in the result we have to declare a
variable with negative sign symbol
e.g. 01 b pic -9(5).
in this variable we will this value
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this
Which Search verb is equivalent to PERFORM…VARYING?
what are decleratives in cobol?
How do you reference the fixed block file formats from cobol programs
can you please let me know if there is any walkins for COBOL/PLI/DB2/IMS/JCL in pune other than IBM and ITC infotech
how to convert the recors form vsam file to db2 table tru file aid
What is perform what is varying?
how do you reference the rrds file formats from cobol programs
There are 5 fields and 1000 records in a file. Unload it into an array. Write the syntax for declaration and how will you unload it.
How to traceback if I am getting SOC7 or SOC4 abend? List down the steps
How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that
if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.
Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?
What rules are followed by the search verb.
Is it possible that the redefines clause has different picture clauses compared to the one it redefined?