|
|
| Author |
Message |
rohit_raajin
New User
Joined: 10 May 2005 Posts: 10 Location: india
|
|
|
|
I have a requirement where i have a variabe PIC 9(8).
For example the variable = 00123456
output should be = 123456 |
|
| Back to top |
|
 |
References
|
Posted: Wed Jun 11, 2008 11:58 am Post subject: Re: Need help to format the output data |
 |
|
|
 |
yogeshwar_ade
Active User
Joined: 31 Aug 2006 Posts: 72 Location: INDIA
|
|
|
|
You can take use of "INSPECT" for "LEADING ZEROS".
Look at Manuals for INSPECT syntax or search in this Forum.
Correct me If I am wrong.
Yogeshwar |
|
| Back to top |
|
 |
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 457
|
|
|
|
Hi,
this may sound too simple so I maybe missing something, move the variable to a ZZZZZZZ9 variable.
Gerry |
|
| Back to top |
|
 |
the_gautam
Active User
Joined: 05 Jun 2005 Posts: 169 Location: Bangalore
|
|
|
|
| according to the requirement mentioned, you have posted the best solution. |
|
| Back to top |
|
 |
yogeshwar_ade
Active User
Joined: 31 Aug 2006 Posts: 72 Location: INDIA
|
|
|
|
| gcicchet wrote: |
Hi,
this may sound too simple so I maybe missing something, move the variable to a ZZZZZZZ9 variable.
Gerry |
Yeah, this is the best solution for this query. |
|
| Back to top |
|
 |
|
|