Consider the following COBOL entries:
05 X PIC 99 VALUE 10.
SUBTRACT 20 FROM X.
The resultant value of X wil be
Answer Posted / madhu
x=x-20 will be -10
Since there is a -ve sign in the beginning it'll be stored
on top of the last digit. So -0 = }.
Then ans will be 1}
| Is This Answer Correct ? | 4 Yes | 4 No |
Post New Answer View All Answers
How can i load all the data from a file to Table (array) in cobol.How i manage the occurs clause with out reading the file.Any options avilable ? Please can any one help me it is urgent?
Explain what you understand by passing by value.
input 1 input2 ouput1 output2 output 3 1 re 300 1 re 200 1 re 300 3 rc 500 1 re 200 2 rr 400 1 re 300 2 rr 400 1 rc 400 3 rc 500 1 rc 400 2 rr 700 2 rr 700 5 tt 900 5 tt 900 2 inputs r in flat file and output 1 is matched records,ouptput2 is unmatched of input1,output3 is unmatched of input2! how vl u get the output files using sequential order and to check with each and every records! let me know the procedure division ?
What is the difference between comp and comp-3?
What are the cobol coding sheets?
Explain about different table spaces.
what happens if parmparameter passes zero bytes to the program
What is the default value(s) for an initialize and what keyword allows for an override of the default?
What is the utilization of copybook in cobol?
What are the pertinent COBOL commands?
How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)
) how do u code after getting data?
example for sub strings ? and refernce modifications whit output pls
What is the difference between PIC 9.99 and PIC9v99?
A table has two indexes defined. Which one will be used by the SEARCH?