The %Dec built-in function uses three parameters to convert a character string to packed decimal.
To convert the numeric field to a character string that includes the zeros in the result, use the %Editc built-in function with the X edit code. Read More