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 / suputhru
I agree with Rama Krishna ans: 10
05 X PIC 99 VALUE 10.
ADD 40 X TO X. ----------- x=x+40 x=10+40 x=50
COMPUTE X = 3 * X - 40.------x=(3*50)-40 x=150-40 x=110 since x pic 99--
finally x=10
antheeeeeeeee.
Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
i want a program using by if, evaluate , string, unstring, perform, occurs?
Can we change the password using ALTER? anyone tried and changed?
What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?
What is an in line perform? When would you use it? Anything else you wish to say about it.
Difference between array and sub-script ?
Which mode is used to operate the sequential file?
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?
) How do u handle errors in BMS macro
What are the different rules for performing sort operation?
Define static linking and dynamic linking.
What is rmode(24)
Can you please let me know the centre name of INS certification in Kolkata.
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.
EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?
What is perform what is varying?