Consider the following COBOL entries:
05 X PIC 99 VALUE 10.
SUBTRACT 20 FROM X.
The resultant value of X wil be
Answer Posted / rajiv gupta
Answeer would be 10. as 20 -10 should be -10 but X is not
declared as signed variable as S9(2)so answer is 10.
| Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
How do you code cobol to access a parameter that has been defined in jcl? And do you code the parm parameter on the exec line in jcl?
what is amode(24), amode(31), rmode(24) and rmode(any)?
How do you reference the following file formats from cobol programs?
i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com
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.
What are all the divisions of a COBOL program?
What are the pertinent COBOL commands?
How do you get the data to code the BMS macro?
Can we redefine the field of x(200) to less than 200?
How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that
how do you reference the esds vsam file formats from cobol programs
What is the difference between PIC 9.99 and 9v99 in COBOL?
how do you reference the variable unblock file formats from cobol programs
Which is not true about evaluate statement
How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?