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


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:

   options user=libref;

libname user "//file-path";

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.