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
Explain about different table spaces.
HOw can I get the negative sign while deduct high value from low value
how do you reference the ksds vsam file formats from cobol programs
Program A (Normal COBBAT) calling a B Program (DB2COBOL, COBBATDB which is using a VSAM file. its a dynamic call. How we will handle VSAM file decleration in our from JCL from where we are running A PGM. And should we have PLAN for A pGM also. if possible can some one post a sample JCL. Thanks for help in advance.
I have a File that has duplicate records. I need only those records that occur more than thrice.?
) How do u handle errors in BMS macro?
Is it possible that the redefines clause has different picture clauses compared to the one it redefined?
Why is it necessary that file needs to be opened in I-O mode for REWRITE?
i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this
How to print 10 to 1 if the input have only 10 digit number?
EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?
How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that
What is static and dynamic call in cobol?
What guidelines should be followed to write a structured cobol prgm?
what is the use of outrecord?