| Author |
Message |
larochka
New User
Joined: 10 Jul 2006 Posts: 3
|
|
|
|
I need to write out a record counter, but to suppress all leading zeroes.
Any ideas? |
|
| Back to top |
|
 |
References
|
Posted: Mon Jul 10, 2006 10:19 pm Post subject: Re: Supress leading zeroes using NATURAL |
 |
|
|
 |
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 1754 Location: Israel
|
|
|
|
How about ZS parameter?
You may set this value at session level, program level, statement level and output-element level.
O. |
|
| Back to top |
|
 |
larochka
New User
Joined: 10 Jul 2006 Posts: 3
|
|
|
|
Would you mind to give me an example?
Thank you! |
|
| Back to top |
|
 |
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 1754 Location: Israel
|
|
|
|
First - my mistake. The parameter is ZP.
Now, NATURAL has default zero suppression for numeric fields. Unless you epecify (EM=9999), the result is zero suppressed.
If you still have problem, you may try (EM=ZZZZZ).
O. |
|
| Back to top |
|
 |
larochka
New User
Joined: 10 Jul 2006 Posts: 3
|
|
|
|
| Thank you, that is what I did. I thought you were talking about field defenition, like COBOL. |
|
| Back to top |
|
 |
|
|