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
A table has two indexes defined. Which one will be used by the SEARCH?
What are various search techniques in cobol? Explain.
Why would you use find and get rather than to obtain?
What is comp-1 and comp-2?
Why occurs cannot be used in 01 level in COBOL?
how do you reference the variable unblock file formats from cobol programs
What is the difference between binary search and sequential search?
State the various causes of s0c1, s0c5 and s0c7.
How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?
How to use the same COBOL program in Batch and CICS on lines? explain with an example
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
how do you reference the rrds file formats from cobol programs
Describe the cobol database components?
What are the cobol coding sheets?
What is the compute verb? How is it used?