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
What is the utilization of copybook in cobol? Could we utilize a similar copybook?
How do you define a variable of comp-1 and comp-2?
How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)
What is link edit in cobol?
What is the local-storage section?
What is the difference between binary search and sequential search?
Which is not true about evaluate statement
Whats the difference between search & search ALL?
What is report-item in COBOL?
What guidelines should be followed to write a structured cobol prgm?
What is the default value(s) for an initialize? What keyword will allow for an override of the default?
INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?
Mention the guidelines to write a structured cobol program?
Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?
Can a Search can be done on a table with or without Index?