%DEC (Convert to Packed Decimal Format)

%DEC(numeric or character expression{:precision:decimal places})
%DEC(date time or timestamp expression {:format})

%DEC converts the value of the first parameter to decimal (packed) format.