Problem Note 1553: Variable names in output data set created by TRANSPOSE are inconsistent
with Version 6
When using the PREFIX= option as well as an ID statement in PROC
TRANSPOSE, the format associated with the numeric ID variable may cause
the output data set to have variables named X__1, X_10, etc. where X is
the PREFIX= value, and 1 and 10 are values of the ID variable. There
should be NO underbars(_). If the ID variable is NUMERIC, then the
format associated with the ID variable is causing the problem.
Therefore, remove the format with:
proc transpose data=dataset prefix=prefix;
format /* ID variable here */;
id /* ID variable here */;
/* rest of code here */
If the ID variable is CHARACTER, then using the option: VALIDVARNAME=V6
on an OPTIONS statement before the TRANSPOSE step will prevent the
problem:
options validvarname=v6;
proc transpose data=dataset prefix=prefix;
id /* ID variable here */;
/* rest of code here */
run;
/* reset VALIDVARNAME to the default */
options validvarname=v7;
Operating System and Release Information
| Product Family | Product | System | Reported Release | Fixed Release* |
| SAS System | Base SAS | Microsoft Windows 95/98 | 8 TS M0 | |
| OpenVMS VAX | 8 TS M0 | 9.1 TS1M0 |
| Solaris | 8 TS M0 | 9.1 TS1M0 |
| z/OS | 8 TS M0 | 9.1 TS1M0 |
| 64-bit Enabled Solaris | 8 TS M0 | 9.1 TS1M0 |
| OS/2 | 8 TS M0 | |
| OpenVMS Alpha | 8 TS M0 | 9.1 TS1M0 |
| CMS | 8 TS M0 | |
| 64-bit Enabled HP-UX | 8 TS M0 | 9.1 TS1M0 |
| HP-UX | 8 TS M0 | 9.1 TS1M0 |
| 64-bit Enabled AIX | 8 TS M0 | |
| AIX | 8 TS M0 | |
| Tru64 UNIX | 8 TS M0 | 9.1 TS1M0 |
| Microsoft Windows NT Workstation | 8 TS M0 | 9.1 TS1M0 |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
| Type: | Problem Note |
| Priority: | |
| Topic: | SAS Reference ==> Procedures ==> TRANSPOSE
|
| Date Modified: | 2003-02-11 13:40:13 |
| Date Created: | 1999-12-24 10:45:19 |