John, that makes sense I think: Y is a signed halfword whereas AL2 is an (unaligned) two-byte unsigned value. If you'd removed the minus signs, I'd expect the warning to disappear as well.
Kind regards, Abe === Op 10/04/2019 om 14:48 schreef Janko Kalinic: > This is old code, but it is generating a truncation warning. If I change > the AL2 to a Y constant there is no truncation warning. > > Regards, > John K > > 00FD92 00080013001C0022 23067=DIRBITP2 DC > 0H'0',AL2(+08,+19,+28,+34,+40) > > 00FD9C FFF8000C0018FFE2 23068=DIRBITP3 DC > 0H'0',AL2(-08,+12,+24,-30,+38) > > ** ASMA225W Value truncated to fit field; stored value is incomplete - > +12 > > ** ASMA225W Value truncated to fit field; stored value is incomplete - > +24 > > ** ASMA225W Value truncated to fit field; stored value is incomplete - > +38 >