Consider the following COBOL entries
05 X PIC 99 VALUE 10.
ADD 40 X TO X.
COMPUTE X = 3 * X - 40.
The result in X is
Answer Posted / kumar l
ADD 40 X to X means : 40+X will add to X and result will
be stored in X - Result is 60
Compute X = 3 * X - 40 means : 3*60-40 = 140.
So X value is 140.
| Is This Answer Correct ? | 5 Yes | 6 No |
Post New Answer View All Answers
2 input fles: 2 flat files, with different number of records. both are having unique key for each record and already sorted in ascending order . match these files using unique key and in output only matching key value has to be written. please procide cobol logic
What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?
What is the usage of comp fields in cobol?
HOw can I get the negative sign while deduct high value from low value
How do you reference the following file formats from cobol programs?
What rules are to be followed while using the corresponding options?
Are you comfortable in cobol or jcl?
how do you reference the fixed unblock file formats from cobol programs
what happens if parmparameter passes zero bytes to the program
What are all the divisions of a COBOL program?
Can we change the password using ALTER? anyone tried and changed?
I have a File that has duplicate records. I need only those records that occur more than thrice.?
Write some characteristics of cobol as means of business language.
What are the various section in data division and briefly explain them.
How you can read the file from bottom?