Problem Note 47184: Using a denominator definition with special percentages in PROC TABULATE causes a Read Access Violation
Special percentages in PROC TABULATE include COLPCTN, COLPCTSUM, ROWPCTN, ROWPCTSUM, PAGEPCTN, and PAGEPCTSUM. These do not require a denominator definition since the denominator is understood. Adding a denominator definition can result in a Read Access Violation.
The following code replicates the problem:
proc tabulate data=sashelp.class;
class sex age;
table sex age, colpctn<sex age>;
run;
The code above generates the following messages:
WARNING: Invalid denominator nesting element: sex.
WARNING: Invalid denominator nesting element: age.
ERROR: Read Access Violation In Task [ TABULATE ]
To correct the problem, remove the denominator definition as shown below.
proc tabulate data=sashelp.class;
class sex age;
table sex age, colpctn;
run;
Operating System and Release Information
SAS System | Base SAS | z/OS | 9.21_M1 | 9.4 | 9.2 TS2M3 | 9.4 TS1M0 |
Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.21_M1 | 9.4 | 9.2 TS2M3 | 9.4 TS1M0 |
Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9.21_M1 | 9.4 | 9.2 TS2M3 | 9.4 TS1M0 |
Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9.21_M1 | 9.4 | 9.2 TS2M3 | 9.4 TS1M0 |
Microsoft Windows XP 64-bit Edition | 9.21_M1 | 9.4 | 9.2 TS2M3 | 9.4 TS1M0 |
Microsoft® Windows® for x64 | 9.21_M1 | 9.4 | 9.2 TS2M3 | 9.4 TS1M0 |
Microsoft Windows Server 2003 Datacenter Edition | 9.21_M1 | 9.4 | 9.2 TS2M3 | 9.4 TS1M0 |
Microsoft Windows Server 2003 Enterprise Edition | 9.21_M1 | 9.4 | 9.2 TS2M3 | 9.4 TS1M0 |
Microsoft Windows Server 2003 Standard Edition | 9.21_M1 | 9.4 | 9.2 TS2M3 | 9.4 TS1M0 |
Microsoft Windows Server 2003 for x64 | 9.21_M1 | 9.4 | 9.2 TS2M3 | 9.4 TS1M0 |
Microsoft Windows Server 2008 | 9.21_M1 | 9.4 | 9.2 TS2M3 | 9.4 TS1M0 |
Microsoft Windows Server 2008 for x64 | 9.21_M1 | 9.4 | 9.2 TS2M3 | 9.4 TS1M0 |
Microsoft Windows XP Professional | 9.21_M1 | 9.4 | 9.2 TS2M3 | 9.4 TS1M0 |
Windows 7 Enterprise 32 bit | 9.21_M1 | | 9.2 TS2M3 | |
Windows 7 Enterprise x64 | 9.21_M1 | | 9.2 TS2M3 | |
Windows 7 Home Premium 32 bit | 9.21_M1 | | 9.2 TS2M3 | |
Windows 7 Home Premium x64 | 9.21_M1 | | 9.2 TS2M3 | |
Windows 7 Professional 32 bit | 9.21_M1 | | 9.2 TS2M3 | |
Windows 7 Professional x64 | 9.21_M1 | | 9.2 TS2M3 | |
Windows 7 Ultimate 32 bit | 9.21_M1 | | 9.2 TS2M3 | |
Windows 7 Ultimate x64 | 9.21_M1 | | 9.2 TS2M3 | |
Windows Vista | 9.21_M1 | 9.4 | 9.2 TS2M3 | 9.4 TS1M0 |
Windows Vista for x64 | 9.21_M1 | 9.4 | 9.2 TS2M3 | 9.4 TS1M0 |
64-bit Enabled AIX | 9.21_M1 | 9.4 | 9.2 TS2M3 | 9.4 TS1M0 |
64-bit Enabled HP-UX | 9.21_M1 | 9.4 | 9.2 TS2M3 | 9.4 TS1M0 |
64-bit Enabled Solaris | 9.21_M1 | 9.4 | 9.2 TS2M3 | 9.4 TS1M0 |
HP-UX IPF | 9.21_M1 | 9.4 | 9.2 TS2M3 | 9.4 TS1M0 |
Linux | 9.21_M1 | 9.4 | 9.2 TS2M3 | 9.4 TS1M0 |
Linux for x64 | 9.21_M1 | 9.4 | 9.2 TS2M3 | 9.4 TS1M0 |
OpenVMS on HP Integrity | 9.21_M1 | 9.4 | 9.2 TS2M3 | 9.4 TS1M0 |
Solaris for x64 | 9.21_M1 | 9.4 | 9.2 TS2M3 | 9.4 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: | medium |
Topic: | SAS Reference ==> Procedures ==> TABULATE
|
Date Modified: | 2012-08-09 11:00:02 |
Date Created: | 2012-08-09 08:35:53 |