Page 1 of 1

How can we suppress leading zeroes using NATURAL?

Posted: Sat Jul 27, 2013 4:26 pm
by AD991
Hi,

In my program, I am in need of writing a record counter, but all the leading zeros should be suppressed. How can I do that. Please help.

Re: How can we suppress leading zeroes using NATURAL?

Posted: Sat Jul 27, 2013 6:29 pm
by Anuj Dhawan
By default, NATURAL has zero suppression for numeric fields; unless you specify EM=9999, the result is zero suppressed. You may also try EM=ZZZZZ.

Re: How can we suppress leading zeroes using NATURAL?

Posted: Sat Aug 03, 2013 10:02 am
by AD991
Thanks Anuj - this worked.

Re: How can we suppress leading zeroes using NATURAL?

Posted: Sat Aug 03, 2013 2:26 pm
by Anuj Dhawan
Glad, you got it working.