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


Please Help Members By Posting Answers For Below Questions

how do you reference the fixed unblock file formats from cobol programs

706


If you are current on the owner of a set, what is the difference between obtain next and obtain first?

639


What is the difference between Global and External Variables?

660


What guidelines should be followed to write a structured cobol prgm?

668


Hi pls anybody tell me about " ANALYSIS DOCUMENT PREPARATION AND ESTIMATION OF TASK " (in real time project)."I want to update a sequential file in my project" for that purpose i need both structures i mean analysis document and estimation of task.

1697






Define cobol?

856


Explain about different table spaces.

644


)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?

1520


how do you reference the variable unblock file formats from cobol programs

743


HOw can I get the negative sign while deduct high value from low value

1786


I have a program with an Array of 5000 occurences which is being passed from 5 sub levels to the front end screen. Thess 5 programs using each 5*2 = 10 different arrays with size as 5000. This is causing the transaction to utilize more storage consupmtion. I am looking to reduce the storage consumption. As part of that initially i thought Dynamic array may solve my problem. After viewing the comments given i see its same as normal array. IS there any other way we can resolve this issue?

1228


How to know whether the module is dynamical or statistical?

650


Discuss about changing dataset name in proc.

757


Write down the divisions of cobol program?

665


I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?

1801