Problem Note 49023: Using _Cn_ variable names in the input data set to PROC REPORT might generate errors
Variable names in the form of _Cn_ are reserved in PROC REPORT.
In SAS® releases prior to SAS® 9.4, errors like the following might occur if the input data set to PROC REPORT contains variables that are named in the _Cn_ form:
ERROR: Read Access Violation In Task [ REPORT ]
Exception occurred at (0817F02E)
Task Traceback
Address Frame (DBGHELP API Version 4.0 rev 5)
...
Beginning with SAS 9.4, the "Read Access Violation" error no longer occurs. The following error might be generated instead:
ERROR: The name _c2_ is reserved for use in COMPUTE blocks. Try using an alias on this column.
To circumvent the problem, do one of the following:
- Rename the variables in the input data set.
- Assign an alias for each variable in the COLUMN statement. For example:
column _c2_=x2 _c3_=x3 _c4_=x4;
Operating System and Release Information
SAS System | Base SAS | z/OS | 9 TS M0 | 9.4 TS1M1 |
Microsoft® Windows® for 64-Bit Itanium-based Systems | 9 TS M0 | |
Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9 TS M0 | |
Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9 TS M0 | |
Microsoft Windows 2000 Advanced Server | 9 TS M0 | |
Microsoft Windows 2000 Datacenter Server | 9 TS M0 | |
Microsoft Windows 2000 Server | 9 TS M0 | |
Microsoft Windows 2000 Professional | 9 TS M0 | |
Microsoft Windows NT Workstation | 9 TS M0 | |
Microsoft Windows Server 2003 Datacenter Edition | 9 TS M0 | |
Microsoft Windows Server 2003 Enterprise Edition | 9 TS M0 | |
Microsoft Windows Server 2003 Standard Edition | 9 TS M0 | |
Microsoft Windows XP Professional | 9 TS M0 | |
64-bit Enabled AIX | 9 TS M0 | 9.4 TS1M1 |
64-bit Enabled HP-UX | 9 TS M0 | 9.4 TS1M1 |
64-bit Enabled Solaris | 9 TS M0 | 9.4 TS1M1 |
HP-UX IPF | 9 TS M0 | 9.4 TS1M1 |
Linux | 9 TS M0 | 9.4 TS1M1 |
OpenVMS Alpha | 9 TS M0 | 9.4 TS1M1 |
Tru64 UNIX | 9 TS M0 | 9.4 TS1M1 |
*
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.
Variable names in the form of _Cn_ are reserved in PROC REPORT. "Read Access Violation" errors might occur if the input data set to PROC REPORT contains variables that are named in this form.
Type: | Problem Note |
Priority: | medium |
Date Modified: | 2013-01-30 14:16:53 |
Date Created: | 2013-01-29 16:22:56 |