Could you please help me to find out the solution of the following problem?
I have one field which is declared as S9(9) COMP,BUT now the declaration has been changed to PACKED-DECIMAL(3,4) so i want to know whether both the fields are compatible. If no then how the truncation will happen.
I believe by packed decimal you mean 9(03)V99 COMP-3.
if you try to move S9(09) comp to 9(03)V99 then truncation will occur..(Obviously )
Suppose in sending field you have 999999999
and when you move it to receiveng field (Comp3)
It will have value 99.00. (which is not acceptable )
You can declare your variable S9(09)V99 comp-3, if you must use packed decimal..
If this is not what you wanted, give us some more details.