What is an “Unpack command”

Showing Answers 1 - 3 of 3 Answers

Anne

  • Oct 6th, 2005
 

UNPACK TO .Unpacks the packed field field1 and places it in the field field2 with leading zeros. If field2 is too short, it is truncated on the left.

  Was this answer useful?  Yes

Anne

  • Oct 6th, 2005
 

UNPACK field1TO field2 .Unpacks the packed field field1 and places it in the field field2 with leading zeros. If field2 is too short, it is truncated on the left.

  Was this answer useful?  Yes

jyoti

  • Nov 6th, 2007
 


This statement converts the content of the data object 'FROM' according to a specific rule and assigns the converted content to data object 'TO'.

It is used for Type Conversion.

1.  If the data type of 'FROM' is not of the type p with length 16 and without decimal places, then the content of 'FROM' is converted to this data type. Any decimal separator in source is completely ignored.
2.  Value will be transfered to 'TO' with right allignment and having + or - sign any additional places filled with leading ZEROS. If the 'TO' variable is not sufficient then it is truncated from the left.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions