Consider the following COBOL entries:
05 X PIC 99 VALUE 10.
SUBTRACT 20 FROM X.
The resultant value of X wil be
Answer Posted / rajiv gupta
Answeer would be 10. as 20 -10 should be -10 but X is not
declared as signed variable as S9(2)so answer is 10.
| Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
Why occurs cannot be used in 01 level in COBOL?
What is the difference between PIC 9.99 and PIC9v99?
) How do u handle errors in BMS macro
How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?
how can i see junk values in dclgen or in hostvariable of comp ?
Discuss about changing dataset name in proc.
What is the problem of ordered sequential files access?
If you are current on the owner of a set, what is the difference between obtain next and obtain first?
What are all the divisions of a COBOL program?
What rules are to be followed while using the corresponding options?
please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?
What is the difference between structured cobol programming and object alternativelyiented cobol programming?
Why would you use find and get rather than to obtain?
What are the pertinent COBOL commands?