SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 60340: SAS® Enterprise Guide might unexpectedly stop working when entering macro variables in programs

DetailsAboutRate It

When the autocomplete option is enabled, SAS Enterprise Guide might unexpectedly stop working when you enter the dot (.) for a macro variable in your code. For example, the problem might occur when you enter &macvar. as shown in the following sample code:

%macro ChangedPct(macvar);
  data _null_;
  call symputx("&macvar.", blabla,'G');
run;
%if /*type manually: &macvar. */

Here is the error that might occur:

Object reference not set to an instance of an object.

-------------------------- Technical Information Follows -------------------------
Exception Details:
----------------------------------------
Exception type: System.NullReferenceException
Message: Object reference not set to an instance of an object.
Source: SAS.EnhancedEditorControl
Target Site: OnKeyUp

Stack Trace:
at SAS.EnhancedEditor.AutoComplete.AutoCompleter.OnKeyUp(Key key, Boolean alt, Boolean ctrl, Boolean shift)

???????

As a workaround, select Program ► Editor Options ► Autocomplete ► Autocomplete Keywords and disable "Macro Variables."



Operating System and Release Information

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemSAS Enterprise GuideMicrosoft® Windows® for x647.137.159.4 TS1M49.4 TS1M4
Microsoft Windows 8 Enterprise 32-bit7.137.159.4 TS1M49.4 TS1M4
Microsoft Windows 8 Enterprise x647.137.159.4 TS1M49.4 TS1M4
Microsoft Windows 8 Pro 32-bit7.137.159.4 TS1M49.4 TS1M4
Microsoft Windows 8 Pro x647.137.159.4 TS1M49.4 TS1M4
Microsoft Windows 8.1 Enterprise 32-bit7.137.159.4 TS1M49.4 TS1M4
Microsoft Windows 8.1 Enterprise x647.137.159.4 TS1M49.4 TS1M4
Microsoft Windows 8.1 Pro 32-bit7.137.159.4 TS1M49.4 TS1M4
Microsoft Windows 8.1 Pro x647.137.159.4 TS1M49.4 TS1M4
Microsoft Windows 107.137.159.4 TS1M49.4 TS1M4
Microsoft Windows Server 20087.137.159.4 TS1M49.4 TS1M4
Microsoft Windows Server 2008 R27.137.159.4 TS1M49.4 TS1M4
Microsoft Windows Server 2008 for x647.137.159.4 TS1M49.4 TS1M4
Microsoft Windows Server 2012 Datacenter7.137.159.4 TS1M49.4 TS1M4
Microsoft Windows Server 2012 R2 Datacenter7.137.159.4 TS1M49.4 TS1M4
Microsoft Windows Server 2012 R2 Std7.137.159.4 TS1M49.4 TS1M4
Microsoft Windows Server 2012 Std7.137.159.4 TS1M49.4 TS1M4
Windows 7 Enterprise 32 bit7.137.159.4 TS1M49.4 TS1M4
Windows 7 Enterprise x647.137.159.4 TS1M49.4 TS1M4
Windows 7 Home Premium 32 bit7.137.159.4 TS1M49.4 TS1M4
Windows 7 Home Premium x647.137.159.4 TS1M49.4 TS1M4
Windows 7 Professional 32 bit7.137.159.4 TS1M49.4 TS1M4
Windows 7 Professional x647.137.159.4 TS1M49.4 TS1M4
Windows 7 Ultimate 32 bit7.137.159.4 TS1M49.4 TS1M4
Windows 7 Ultimate x647.137.159.4 TS1M49.4 TS1M4
* 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.