SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 13510: Invalid reference value error if REF='level' used for two or more variables

DetailsHotfixAboutRate It

See this note which describes the most common reason for this error message. The following describes a specific problem that was fixed in SAS® 9.2. For general information on setting reference levels, see this note.

If, for two or more CLASS variables, you specify the REF= variable option in the CLASS statement to identify particular reference levels for the variables, then the following error will appear:

ERROR: Invalid reference value for xxxxxxx.

where xxxxxxx is the name of a CLASS variable. For example, this statement will generate the error:

class a(ref='1') b(ref='1');

To avoid the problem, remove the REF= options, or use REF=FIRST or LAST instead of specifying particular values. If you recode the variables or assign formats so that the intended reference levels have the highest sorted values, then you can remove the REF= options and get the desired coding.

A fix for SAS 9.1.3 (9.1 TS1M3) for this issue is available at: http://www.sas.com/techsup/download/hotfix/e9_sbcs_prod_list.html#013510



Operating System and Release Information

Product FamilyProductSystemSAS Release
ReportedFixed*
SAS SystemSAS/STATMicrosoft Windows NT Workstation9 TS M0
Microsoft Windows Server 2003 Standard Edition9 TS M09.2 TS1M0
Microsoft® Windows® for 64-Bit Itanium-based Systems9 TS M09.2 TS1M0
Microsoft Windows 2000 Professional9 TS M09.2 TS1M0
Microsoft Windows 2000 Server9 TS M09.2 TS1M0
Microsoft Windows Server 2003 Datacenter Edition9 TS M09.2 TS1M0
Microsoft Windows Server 2003 Enterprise Edition9 TS M09.2 TS1M0
Microsoft Windows 2000 Advanced Server9 TS M09.2 TS1M0
Microsoft Windows 2000 Datacenter Server9 TS M09.2 TS1M0
Linux9 TS M09.2 TS1M0
z/OS9 TS M09.2 TS1M0
Solaris9 TS M09.2 TS1M0
64-bit Enabled Solaris9 TS M09.2 TS1M0
HP-UX9 TS M09.2 TS1M0
HP-UX IPF9 TS M09.2 TS1M0
64-bit Enabled HP-UX9 TS M09.2 TS1M0
OpenVMS Alpha9 TS M09.2 TS1M0
64-bit Enabled AIX9 TS M09.2 TS1M0
Microsoft Windows XP Professional9 TS M09.2 TS1M0
Tru64 UNIX9 TS M09.2 TS1M0
AIX9 TS M09.2 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.