SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 65340: You receive "Syntax error, statement will be ignored..." when you run a procedure that supports in-database processing

DetailsHotfixAboutRate It

When you use procedures that support in-database processing, you receive an error similar to the following:

1   option sqlgeneration=DBMS;
2   proc summary data=test."/special/chars"n;
3                  var age;
4                  output out=sumout sum=age;
5   run;
ERROR 22-322: Syntax error, expecting one of the following: a name, a quoted string, a numeric constant, a datetime constant, a missing value, ), BTRIM, INPUT, PUT, SUBSTRING, USER.
ERROR 22-322: Expecting a name.
ERROR 76-322: Syntax error, statement will be ignored.
ERROR: Error during in-database processing.
NOTE: The SAS System stopped processing this step because of errors.

Here are some of the procedures that can trigger this issue:

  • PROC SUMMARY 
  • PROC TABULATE
  • PROC MEANS
  • PROC RANK
  • PROC FREQ
  • PROC SORT
  • PROC REPORT

You encounter this issue when the table name contains special characters, such as '/', '%', '\', and so on.

You can work around this problem by renaming the table so that it contains only alphanumeric characters.

Click the Hot Fix tab in this note to access the hot fix for this issue.



Operating System and Release Information

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemBase SASz/OS9.4_M69.4 TS1M6
z/OS 64-bit9.4_M69.4 TS1M6
Microsoft® Windows® for x649.4_M69.4 TS1M6
Microsoft Windows 8 Enterprise 32-bit9.4_M69.4 TS1M6
Microsoft Windows 8 Enterprise x649.4_M69.4 TS1M6
Microsoft Windows 8 Pro 32-bit9.4_M69.4 TS1M6
Microsoft Windows 8 Pro x649.4_M69.4 TS1M6
Microsoft Windows 8.1 Enterprise 32-bit9.4_M69.4 TS1M6
Microsoft Windows 8.1 Enterprise x649.4_M69.4 TS1M6
Microsoft Windows 8.1 Pro 32-bit9.4_M69.4 TS1M6
Microsoft Windows 8.1 Pro x649.4_M69.4 TS1M6
Microsoft Windows 109.4_M69.4 TS1M6
Microsoft Windows Server 2012 Datacenter9.4_M69.4 TS1M6
Microsoft Windows Server 2012 R2 Datacenter9.4_M69.4 TS1M6
Microsoft Windows Server 2012 R2 Std9.4_M69.4 TS1M6
Microsoft Windows Server 2012 Std9.4_M69.4 TS1M6
Microsoft Windows Server 20169.4_M69.4 TS1M6
Microsoft Windows Server 20199.4_M69.4 TS1M6
Windows 7 Enterprise 32 bit9.4_M69.4 TS1M6
Windows 7 Enterprise x649.4_M69.4 TS1M6
Windows 7 Home Premium 32 bit9.4_M69.4 TS1M6
Windows 7 Home Premium x649.4_M69.4 TS1M6
Windows 7 Professional 32 bit9.4_M69.4 TS1M6
Windows 7 Professional x649.4_M69.4 TS1M6
Windows 7 Ultimate 32 bit9.4_M69.4 TS1M6
Windows 7 Ultimate x649.4_M69.4 TS1M6
64-bit Enabled AIX9.4_M69.4 TS1M6
64-bit Enabled Solaris9.4_M69.4 TS1M6
HP-UX IPF9.4_M69.4 TS1M6
Linux for x649.4_M69.4 TS1M6
Solaris for x649.4_M69.4 TS1M6
* 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.