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
Write a cobol program making use of the redefine clause.
Can we change the password using ALTER? anyone tried and changed?
What is the difference between Call and a Link?
how do you reference the printer file formats from cobol programs
How do you reference the following file formats from cobol programs?
how do you reference the esds vsam file formats from cobol programs
How do u write test cases?
How do define dynamic array in cobol.
HOw can I get the negative sign while deduct high value from low value
What is the Purpose of Pointer in the string?
For rewrite, why is it mandatory that file needs to be opened?
What is the problem of ordered sequential files access?
Why did you choose to work with ibm mainframe cobol programming?
What is the difference between perform … with test after and perform … with test before?
how to access the file from prodution from changeman tool and to submit a file to production