On size error with comp-3 fields
![Post Post](https://www.ibmmainframeforum.com/styles/prosilver/imageset/icon_post_target.gif)
Can I do this? (it is giving me on size error) :
==============
With either ROUNDED or without it it's giving me an error. Is this a legal operation with different field types and sizes? Or I'm doing something wrong.
01 GPA PIC 9(3)V99.
01 TOTAL-GPA PIC 9(3)V99.
01 AVERAGE-GPA PIC9(3)V99.
01 QTY PIC 99.
MOVE 14 TO QTY.
MOVE 34.45 TO TOTAL-GPA.
DIVIDE TOTAL-GPA BY QTY GIVING AVERAGE-GPA ROUNDED.
01 TOTAL-GPA PIC 9(3)V99.
01 AVERAGE-GPA PIC9(3)V99.
01 QTY PIC 99.
MOVE 14 TO QTY.
MOVE 34.45 TO TOTAL-GPA.
DIVIDE TOTAL-GPA BY QTY GIVING AVERAGE-GPA ROUNDED.
==============
With either ROUNDED or without it it's giving me an error. Is this a legal operation with different field types and sizes? Or I'm doing something wrong.