SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 62273: An error is returned by the Database Management System (DBMS) when you use a WHERE clause or WHERE statement to subset a DBMS table

DetailsAboutRate It

When you use a WHERE clause or WHERE statement to subset a DBMS table, an error might be returned by the DBMS.  The actual error received differs depending on the DBMS. 

You encounter this issue when you code the WHERE clause or statement similar to the following:

WHERE varname > ''

The query that is passed to the DBMS includes incorrect syntax similar to the following:

WHERE ("VARNAME" > ' ' "VARNAME" IS NULL)

The workaround is to code the WHERE clause or statement similar to the following:

WHERE varname is not null


Operating System and Release Information

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemBase SASz/OS9.49.4_M29.4 TS1M09.4 TS1M2
z/OS 64-bit9.49.4_M29.4 TS1M09.4 TS1M2
Microsoft® Windows® for x649.49.4_M29.4 TS1M09.4 TS1M2
Microsoft Windows 8 Enterprise x649.49.4_M29.4 TS1M09.4 TS1M2
Microsoft Windows 8 Pro x649.49.4_M29.4 TS1M09.4 TS1M2
Microsoft Windows 8.1 Enterprise 32-bit9.49.4_M29.4 TS1M09.4 TS1M2
Microsoft Windows 8.1 Enterprise x649.49.4_M29.4 TS1M09.4 TS1M2
Microsoft Windows 8.1 Pro 32-bit9.49.4_M29.4 TS1M09.4 TS1M2
Microsoft Windows 8.1 Pro x649.49.4_M29.4 TS1M09.4 TS1M2
Microsoft Windows 109.49.4_M29.4 TS1M09.4 TS1M2
Microsoft Windows Server 2008 R29.49.4_M29.4 TS1M09.4 TS1M2
Microsoft Windows Server 2008 for x649.49.4_M29.4 TS1M09.4 TS1M2
Microsoft Windows Server 2012 Datacenter9.49.4_M29.4 TS1M09.4 TS1M2
Microsoft Windows Server 2012 R2 Datacenter9.49.4_M29.4 TS1M09.4 TS1M2
Microsoft Windows Server 2012 R2 Std9.49.4_M29.4 TS1M09.4 TS1M2
Microsoft Windows Server 2012 Std9.49.4_M29.4 TS1M09.4 TS1M2
Windows 7 Enterprise x649.49.4_M29.4 TS1M09.4 TS1M2
Windows 7 Professional x649.49.4_M29.4 TS1M09.4 TS1M2
64-bit Enabled AIX9.49.4_M29.4 TS1M09.4 TS1M2
64-bit Enabled Solaris9.49.4_M29.4 TS1M09.4 TS1M2
HP-UX IPF9.49.4_M29.4 TS1M09.4 TS1M2
Linux for x649.49.4_M29.4 TS1M09.4 TS1M2
Solaris for x649.49.4_M29.4 TS1M09.4 TS1M2
* 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.