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 / geetanjali
ADD 40 X TO X
***********ADD 40 10 TO X
***********X=X+40+10=60
***********COMPUTE X=3*60-40=120
X=120
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
Mention the guidelines to write a structured cobol program?
How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?
What is the Purpose of POINTER Phrase in STRING command in COBOL?
What is the local-storage section?
There are 5 fields and 1000 records in a file. Unload it into an array. Write the syntax for declaration and how will you unload it.
how do you reference the variable unblock file formats from cobol programs
How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)
State the various causes of s0c1, s0c5 and s0c7.
What are various search techniques in cobol? Explain.
i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com
How do you get the data to code the BMS macro?
What are the pertinent COBOL commands?
What is length is cobol?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?
What happens when we move a comp-3 field to an edited (say z (9). Zz-)?