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


Please Help Members By Posting Answers For Below Questions

What is the difference between a binary search and a sequential search what are the pertinent cobol?

735


Why would you use find and get rather than to obtain?

690


What is the utilization of copybook in cobol? Could we utilize a similar copybook?

720


How did the release of cobol/370 version 1.3 improve the performance of release 1.1?

645


State the various causes of s0c1, s0c5 and s0c7.

665






What is the difference between structured cobol programming and object alternativelyiented cobol?

755


Explain how you can characterize tables in cobol?

638


Write a program to explain size error.

677


What are the cobol coding sheets?

664


What are the rules of the move verb?

707


Name some of the examples of COBOl 11?

2686


What are declaratives and what are their uses in cobol?

714


Which mode is used to operate the sequential file?

669


What are literals?

632


How do you differentiate between cobol and cobol-ii?

656