SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 31887: Problems with macro variables created in an AUTOEXEC.SAS file when executing SAS® on a workspace server

DetailsHotfixAboutRate It

A global macro variable that is created in an AUTOEXEC.SAS file does not appear in SASHELP.VMACRO. This is most likely to occur when running SAS through SAS® Enterprise Guide® or SAS® Data Integration Studio on a workspace server. The macro variable exists and can be resolved, but it does not appear when a %PUT _USER_ or %PUT _GLOBAL_ is used.

Another problem occurs when the macro variables that are created in the AUTOEXEC.SAS file are updated within a macro. Any changes to the macro variables cause the macro variables to display in the local symbol table and not in the global symbol table. This is a problem because the updated version of the variable is not available outside of the macro. The original value is used outside of the macro.

To circumvent the problem, create a new variable as shown in the example code below.

%macro test;
   %global temp;
   %let oldvariable=new-value;
   %let temp=&oldvariable;
%mend;


Operating System and Release Information

Product FamilyProductSystemSAS Release
ReportedFixed*
SAS SystemBase SASz/OS9.1 TS1M3 SP49.2 TS1M0
Microsoft® Windows® for 64-Bit Itanium-based Systems9.1 TS1M3 SP49.2 TS1M0
Microsoft Windows Server 2003 Datacenter 64-bit Edition9.1 TS1M3 SP49.2 TS1M0
Microsoft Windows Server 2003 Enterprise 64-bit Edition9.1 TS1M3 SP49.2 TS1M0
Microsoft Windows XP 64-bit Edition9.1 TS1M3 SP49.2 TS1M0
Microsoft® Windows® for x649.1 TS1M3 SP49.2 TS1M0
Microsoft Windows 2000 Advanced Server9.1 TS1M3 SP4
Microsoft Windows 2000 Datacenter Server9.1 TS1M3 SP4
Microsoft Windows 2000 Server9.1 TS1M3 SP4
Microsoft Windows 2000 Professional9.1 TS1M3 SP4
Microsoft Windows NT Workstation9.1 TS1M3 SP4
Microsoft Windows Server 2003 Datacenter Edition9.1 TS1M3 SP49.2 TS1M0
Microsoft Windows Server 2003 Enterprise Edition9.1 TS1M3 SP49.2 TS1M0
Microsoft Windows Server 2003 Standard Edition9.1 TS1M3 SP49.2 TS1M0
Microsoft Windows XP Professional9.1 TS1M3 SP49.2 TS1M0
Windows Vista9.1 TS1M3 SP49.2 TS1M0
64-bit Enabled AIX9.1 TS1M3 SP49.2 TS1M0
64-bit Enabled HP-UX9.1 TS1M3 SP49.2 TS1M0
64-bit Enabled Solaris9.1 TS1M3 SP49.2 TS1M0
HP-UX IPF9.1 TS1M3 SP49.2 TS1M0
Linux9.1 TS1M3 SP49.2 TS1M0
Linux on Itanium9.1 TS1M3 SP49.2 TS1M0
OpenVMS Alpha9.1 TS1M3 SP49.2 TS1M0
Tru64 UNIX9.1 TS1M3 SP49.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.