Data Transformation Engine Functions and Expressions Reference Guide
Chapter 3 - Function Reference  PACKAGE 
Functions and Expressions Reference Guide 
162 
Note  Define items as having a packed decimal number presentation. Then, when 
mapping to or from these items, the conversion to and from packed decimal is 
automatically performed as needed. 
Related Function 
UNPACK 
PACKAGE 
The PACKAGE function converts a group or item object to a text item, including its 
initiator and terminator. 
Syntax 
PACKAGE (single-object-expression) 
Meaning 
PACKAGE (object_to_convert) 
Returns 
This function returns a single-text-item. 
Converts object_to_convert, which must be a type reference, to a text item, 
including the type reference’s initiator, terminator and all delimiters. 
PACKAGE 
differs from 
TEXT in that it includes the initiator and terminator of the specified 
type reference. 
Examples 
For this example, the group Record has an initiator of "#", a terminator of "@" 
and a delimiter of ","and its data looks like this: 
"#1339X10A,491.38,Green,42x54@". 
PACKAGE (Record:Card) returns #1339X10A,491.38,Green,42x54@ 
Uses 
Use 
PACKAGE to convert an object to a text item that includes its initiator, 
terminator, and any delimiters it contains. 










