SUPPORT / SAMPLES & SAS NOTES
 

Support

Usage Note 68936: Using the SAS® SG procedures or ODS Graphics with the USER system option results in "Error: Could not establish ODS Graphics context"

DetailsAboutRate It

The use of a SAS SG procedure (such as PROC SGPLOT) or ODS Graphics with the USER system option results in the following error message:

Error: Unable to establish ODS Graphics context

The error can occur in these circumstances:

  • You set the USER system option. Here is an example:

       options user=libref;
     
  • You use a LIBNAME statement to define a libref that is named USER. Here is an example:

       libname user "//file-path";
     
  • You use both the USER system option and a LIBNAME statement as described in the previous bullet. 

To circumvent the issue, either modify your SAS code to use a technique that does not involve the USER system option, or define a libref to have a name that is other than USER.



Operating System and Release Information

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