Before moving to Decimal field you can suppress leading zeros in character field using below command. And, then you can convert the result into Decimal field.
<b>EVALR WKCHAR = %TRIML(WKCHAR:'0')
WKDEC = %DEC(WKCHAR:10:0)</b>
Pradeep.
Last Wiki Answer Submitted: May 14, 2012 12:51 pm by deepu93213,520 pts.
If you live outside the United States, by submitting your email address you consent to having your personal data transferred to and processed in the United States.
Are you moving the data to numeric field from a character variable?
Pradeep.
Yes moving from a character variable to a numeric value
Yes moving from a character variable to a numeric value
You can’t clear leading zeros from a numeric field. If you do, it’s not numeric any more.
If you need the zeros cleared, then don’t use a numeric field — use a character field.
Tom