Hi Friends,
I want to convert Numeric to a character, but with the following requisites
Numeric 7s 2 . It can have value as -12.12, 12.12
Character 8A
When I am going to convert the same to character, i need the Decimal point to be retained,leading zeros to be retained and also the negative sign to be displayed first .
The output for Negative value is to be -000012.12
and positive value as 000012.12
The %Editc(Numeric:'X') retains leading zeros value but decimal position is missing.
Likewise the other editc keywords has one or other attribute, but all the clubbing condition fails.
The Simpler ones was %char*Numeric) which yielded me with -12.12 without leading zeros.
Kindly suggest me a way, by which all the three requisites can be done.
I want to convert Numeric to a character, but with the following requisites

Numeric 7s 2 . It can have value as -12.12, 12.12
Character 8A
When I am going to convert the same to character, i need the Decimal point to be retained,leading zeros to be retained and also the negative sign to be displayed first .
The output for Negative value is to be -000012.12
and positive value as 000012.12
The %Editc(Numeric:'X') retains leading zeros value but decimal position is missing.
Likewise the other editc keywords has one or other attribute, but all the clubbing condition fails.
The Simpler ones was %char*Numeric) which yielded me with -12.12 without leading zeros.
Kindly suggest me a way, by which all the three requisites can be done.
Comment