Consider the following COBOL entries:
05 X PIC 99 VALUE 10.
SUBTRACT 20 FROM X.
The resultant value of X wil be
Answer Posted / swappy
Answer #3 is correct. Since there is no sign clause it will
just ignore the -ve sign and resultant will be 10.
Also Prabhu, there is no problem with the level no. There
will not be any error due to the level no.
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
What is the compute verb? How is it used?
How do you get the data to code the BMS macro?
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 ......
How do you define a variable of comp-1 and comp-2?
what is amode(24), amode(31), rmode(24) and rmode(any)?
What is the difference between comp and comp-3?
Are you comfortable in cobol or jcl?
what is the use of outrecord?
When is inspect verb is used in cobol?
What is length is cobol?
How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?
What is the difference between perform … with test after and perform … with test before?
How you can read the file from bottom?
how to convert the recors form vsam file to db2 table tru file aid
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?