consider the following piece of code
01 GROUP-ITEM
05 AMOUNT-1 PIC 99V9 USAGE COMP VALUE 50
05 AMOUNT-2 PIC 9(4)V99 USAGE COMP
MOVE ZERO TO GROUP-ITEM
ADD 50 TO AMOUNT-1
what will be the content of AMOUNT-1?
a.50
b.100
c.0
d.unpredictable
Answer Posted / naveen
Why not C?
Can we have the reason for the above answer?
| Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
What are the different data types in cobol?
How do you define a variable of comp-1 and comp-2?
How can we find that module can be called – whether DYNAMICALLY or STATICALLY?
2 input fles: 2 flat files, with different number of records. both are having unique key for each record and already sorted in ascending order . match these files using unique key and in output only matching key value has to be written. please procide cobol logic
How do define dynamic array in cobol.
HOw can I get the negative sign while deduct high value from low value
What is the difference between comp and comp-3?
How do u write test cases?
can you please let me know if there is any walkins for COBOL/PLI/DB2/IMS/JCL in pune other than IBM and ITC infotech
How to print 10 to 1 if the input have only 10 digit number?
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?
How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)
What is rmode(any) ?
what is the use of outrecord?
What are the different types of condition in cobol and write their forms.