I am trying this: DATA want; SET have; LENGTH ID $ 7; ID = CATS('SL',put( _n_ ,z5.)); RUN; But get warning errors below. Is it possible that _n_ is wider than 2 digits? WARNING: Length of character variable ID has already been set. Use the LENGTH statement as the very first statement in the DATA STEP to declare the length of a character variable. WARNING: In a call to the CATS function, the buffer allocated for the result was not long enough to contain the concatenation of all the arguments. The correct result would contain 7 characters, but the actual result might either be truncated to 1 character(s) or be completely blank, depending on the calling environment. The following note indicates the left-most argument that caused truncation.
... View more