Thanks to all who responded. I was not aware of the KEEPLEN option for the OUTPUT OUT= statement. Clean and easy, and it saves an additional data step. The variable I am limiting the length to 4 is an integer and takes a value between 0 and 20,000.
... View more