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
State the various causes of s0c1, s0c5 and s0c7.
What are all the divisions of a COBOL program?
What is static and dynamic call in cobol?
How do u write test cases?
Which mode is used to operate the sequential file?
Can we change the password using ALTER? anyone tried and changed?
Write a program to enter and display the names of students in a class using the occurs clause.
Explain how you can characterize tables in cobol?
What is the difference between next sentence and continue in cobol programing language?
Why is it necessary that file needs to be opened in I-O mode for REWRITE?
What is Pic 9v99 Indicates in COBOL?
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.
input 1 input2 ouput1 output2 output 3 1 re 300 1 re 200 1 re 300 3 rc 500 1 re 200 2 rr 400 1 re 300 2 rr 400 1 rc 400 3 rc 500 1 rc 400 2 rr 700 2 rr 700 5 tt 900 5 tt 900 2 inputs r in flat file and output 1 is matched records,ouptput2 is unmatched of input1,output3 is unmatched of input2! how vl u get the output files using sequential order and to check with each and every records! let me know the procedure division ?
Write a program to explain size error.
How do you reference the following file formats from cobol programs?