on 2007 May 02 11:30 AM
Hi,
I need to convert an integer to a 10 digit character.Could you help me to know how I could do it?
e.g. if the integer is 6000034, the converted value must be 0006000034.
I need to have the leading zereos.
Thanks,
Sandeep.
Request clarification before answering.
And nowadays you simply write:
text = |{ CONV string( num ) WIDTH = 10 ALPHA = IN }|.
or
TYPES numc TYPE n LENGTH 10.
text = CONV numc( num ).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 15 | |
| 9 | |
| 6 | |
| 4 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.