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


Please Help Members By Posting Answers For Below Questions

A table has two indexes defined. Which one will be used by the SEARCH?

1005


What are various search techniques in cobol? Explain.

853


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

893


What is comp-1 and comp-2?

929


Why occurs cannot be used in 01 level in COBOL?

905


how do you reference the variable unblock file formats from cobol programs

994


What is the difference between binary search and sequential search?

847


State the various causes of s0c1, s0c5 and s0c7.

838


How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?

851


How to use the same COBOL program in Batch and CICS on lines? explain with an example

2101


can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

2109


how do you reference the rrds file formats from cobol programs

1128


Describe the cobol database components?

879


What are the cobol coding sheets?

856


What is the compute verb? How is it used?

845