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


Please Help Members By Posting Answers For Below Questions

Explain about different table spaces.

652


HOw can I get the negative sign while deduct high value from low value

1797


how do you reference the ksds vsam file formats from cobol programs

669


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.

5065


I have a File that has duplicate records. I need only those records that occur more than thrice.?

8668






) How do u handle errors in BMS macro?

1431


Is it possible that the redefines clause has different picture clauses compared to the one it redefined?

678


Why is it necessary that file needs to be opened in I-O mode for REWRITE?

748


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

1000


How to print 10 to 1 if the input have only 10 digit number?

815


EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?

2060


How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that

2734


What is static and dynamic call in cobol?

601


What guidelines should be followed to write a structured cobol prgm?

675


what is the use of outrecord?

1774