SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 43828: The error "Expecting a variable name after %LET" occurs in SAS® 9.3

DetailsHotfixAboutRate It

The %LET statement in SAS® 9.3 might fail, resulting in the following message in the SAS log:

ERROR: Expecting a variable name after %LET.

This problem is most likely to occur when the %LET statement is defined within a macro that is called by another macro. Here is an example that replicates the problem:

%macro foo(arg1); %put This is FOO! &=arg1; %mend foo; %macro bar; %foo(%let x = 1; &x); %mend bar; %bar;

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.39.3_M19.3 TS1M09.3 TS1M1
Z649.39.3_M19.3 TS1M09.3 TS1M1
Microsoft® Windows® for x649.39.3_M19.3 TS1M09.3 TS1M1
Microsoft Windows Server 2003 Datacenter Edition9.39.3_M19.3 TS1M09.3 TS1M1
Microsoft Windows Server 2003 Enterprise Edition9.39.3_M19.3 TS1M09.3 TS1M1
Microsoft Windows Server 2003 Standard Edition9.39.3_M19.3 TS1M09.3 TS1M1
Microsoft Windows Server 2003 for x649.39.3_M19.3 TS1M09.3 TS1M1
Microsoft Windows Server 20089.39.3_M19.3 TS1M09.3 TS1M1
Microsoft Windows Server 2008 for x649.39.3_M19.3 TS1M09.3 TS1M1
Microsoft Windows XP Professional9.39.3_M19.3 TS1M09.3 TS1M1
Windows 7 Enterprise 32 bit9.39.3_M19.3 TS1M09.3 TS1M1
Windows 7 Enterprise x649.39.3_M19.3 TS1M09.3 TS1M1
Windows 7 Home Premium 32 bit9.39.3_M19.3 TS1M09.3 TS1M1
Windows 7 Home Premium x649.39.3_M19.3 TS1M09.3 TS1M1
Windows 7 Professional 32 bit9.39.3_M19.3 TS1M09.3 TS1M1
Windows 7 Professional x649.39.3_M19.3 TS1M09.3 TS1M1
Windows 7 Ultimate 32 bit9.39.3_M19.3 TS1M09.3 TS1M1
Windows 7 Ultimate x649.39.3_M19.3 TS1M09.3 TS1M1
Windows Vista9.39.3_M19.3 TS1M09.3 TS1M1
Windows Vista for x649.39.3_M19.3 TS1M09.3 TS1M1
64-bit Enabled AIX9.39.3_M19.3 TS1M09.3 TS1M1
64-bit Enabled HP-UX9.39.3_M19.3 TS1M09.3 TS1M1
64-bit Enabled Solaris9.39.3_M19.3 TS1M09.3 TS1M1
HP-UX IPF9.39.3_M19.3 TS1M09.3 TS1M1
Linux9.39.3_M19.3 TS1M09.3 TS1M1
Linux for x649.39.3_M19.3 TS1M09.3 TS1M1
Solaris for x649.39.3_M19.3 TS1M09.3 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.