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
how do you reference the rrds file formats from cobol programs
please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?
How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?
Which division and paragraphs are mandatory for a COBOL program?
) how do u code after getting data?
What is the utilization of copybook in cobol? Could we utilize a similar copybook?
What are the various section in data division and briefly explain them.
I have program P1 which calls file F1 which has 100 records and following structure 001 .................. 002 .................. 003 .................. 098 .................... 099 ................... 100 .................... Now I want to read these files and write these records in file F2 in following manner. 001 ...... 051 ..... 002 ...... 052 ..... 003 ...... 053 ..... .......... ....... .......... ....... .......... ....... 048 ........ 098 ...... 049 .......... 099 ....... 050 .... 100 ......
What is rmode(any) ?
What are the pertinent COBOL
what is the use of outrecord?
How do define dynamic array in cobol.
Have you used comp and comp-3 in your project? And how?
Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning
How to know whether the module is dynamical or statistical?