I need to pad to a required length and this length is variable. Depends on how many characters out of 15 (field length) are populated on the table, the rest must be padded with '0' or spaces on extracting this data from the table.
USe len to find out the len of th string and then replicate to get a string with the right number of 0 or spaces and then concatenate the field with the resuilts of replicate.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.