Consider the following COBOL entries:
05 X PIC 99 VALUE 10.
SUBTRACT 20 FROM X.
The resultant value of X wil be
Answer Posted / swappy
Answer #3 is correct. Since there is no sign clause it will
just ignore the -ve sign and resultant will be 10.
Also Prabhu, there is no problem with the level no. There
will not be any error due to the level no.
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
what is the difference between COBOL2 AND COBOL390?
how do you reference the esds vsam file formats from cobol programs
What are the rules of the move verb?
What is the usage of comp fields in cobol?
How do you differentiate between cobol and cobol-ii?
What is the compute verb? How is it used?
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)?
Describe the cobol database components?
State the various causes of s0c1, s0c5 and s0c7.
Can a Search can be done on a table with or without Index?
What is the local-storage section?
How do get the result of your program directly on your pc?
What are the various section in data division and briefly explain them.
Explain how you can characterize tables in cobol?
How did the release of cobol/370 version 1.3 improve the performance of release 1.1?