10-09-2008 3:39 PM
Hi All
I have to update a field with a value of '001',i have assigned it like this.
Data: variabe(3) type c value'001'.
but when i am concatenating this field with another field these zeroe are getting deleted can any tell me how to get the leading zeros??
Thanks
10-09-2008 4:00 PM
if you use type n declaration then leading zeroes will be padded automatically.
Data: variabe(3) type n value'001'.
10-09-2008 3:44 PM
Hi,
Use N instead of C.
Data: var1(3) type n value'001',
var2 type string,
res_var type string.
concatenate var1 var2 into res_var.
Regards
Marcin
10-09-2008 4:00 PM
if you use type n declaration then leading zeroes will be padded automatically.
Data: variabe(3) type n value'001'.