Chapter Contents |
Previous |
Next |
The TRANSPOSE Procedure |
Featured in: | Naming Transposed Variables |
Restriction: | You cannot use PROC TRANSPOSE with an ID statement or a BY statement with an engine that supports concurrent access if another user is updating the data set at the same time. |
ID variable; |
Required Argument |
Duplicate ID Values |
Making Variable Names Out of Numeric Values |
However, SAS variable names cannot begin with a number. Thus, when the first character of the formatted value is numeric, the procedure prefixes an underscore to the value, truncating the last character of an 32-character value. Any remaining invalid characters are replaced by underscores. The procedure truncates to 32 characters any ID value that is longer than 32 characters when it uses that value to name a transposed variable.
If the formatted value looks like a numeric constant, PROC TRANSPOSE changes the characters '+', '-', and '.' to 'P','N', and 'D', respectively. If the formatted value has characters that are not numerics, PROC TRANSPOSE changes the characters '+', '-', and '.' to underscores.
Note: If the value of the VALIDVARNAME system option is V6, PROC
TRANSPOSE truncates transposed variable names to eight characters.
Missing Values |
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.