Help using Base SAS procedures

Fill a camp

Reply
Not applicable
Posts: 0

Fill a camp

How can I fill a field with characters '0' by the left?

If my field contains the string "123" and its length is 5, I want it to contain the string "00123"....I can´t use the instruction LPAD in SQL...
Not applicable
Posts: 0

Re: Fill a camp

Posted in reply to deleted_user
It's call the "Zw.d" format.

You can get to the SAS documentation for SAS 8, 9.1.x and 9.2 off the web. within the documentation, look for BaseSAS, Language Dictionary, Formats.
Ask a Question
Discussion stats
  • 1 reply
  • 124 views
  • 0 likes
  • 1 in conversation