‎2008 Feb 12 3:36 PM
Hi,
I have a variable of dec type length 17 which i need to copy in variable of type dec with length 16. Please let me know the shotest solution for the same.
<REMOVED BY MODERATOR>
Edited by: Alvaro Tejada Galindo on Feb 12, 2008 10:48 AM
‎2008 Feb 12 3:38 PM
straight move should be fine..
else use offset
dec_16 = dec_17+(16).
‎2008 Feb 12 3:38 PM
straight move should be fine..
else use offset
dec_16 = dec_17+(16).
‎2008 Feb 12 4:30 PM
I don't think you can use offsets with packed fields.
I would just check to make sure the amount in the source field is not too large for the destination and then if it's not, just do a MOVE.
Rob