Assuming that you have a field num_field
that needs to be zero-padded into 6 characters, and that the value of the field does not exceed 999999;
eval num_field = "000000" . num_field | eval num_field = substr(num_field, -6)
/K
Hi,
yes it works.
Thanks
Assuming that you have a field num_field
that needs to be zero-padded into 6 characters, and that the value of the field does not exceed 999999;
eval num_field = "000000" . num_field | eval num_field = substr(num_field, -6)
/K