<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: SAS Upgrade -&amp;gt; ERROR: Unable to establish ODS Graphics context. in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Upgrade-gt-ERROR-Unable-to-establish-ODS-Graphics-context/m-p/786424#M23558</link>
    <description>Was the .cfg file on the server changed/updated when you upgraded the software?&lt;BR /&gt;If yes, verify if you have "-SASUSER" specified correctly in the config-flie.&lt;BR /&gt;There has been a single report on .cfg having -USER in stead of -SASUSER. But no proof that this was caused by the upgrade.&lt;BR /&gt;&lt;BR /&gt;If not can you start the server and run the code below and attach the log?&lt;BR /&gt;ods graphics on / &lt;BR /&gt;     width=3.25in&lt;BR /&gt;     outputfmt=gif&lt;BR /&gt;     imagemap=on&lt;BR /&gt;     imagename="MyBoxplot"&lt;BR /&gt;     border=off;&lt;BR /&gt;&lt;BR /&gt;ods html file="Boxplot-Body.html" &lt;BR /&gt;     style=journal;&lt;BR /&gt;&lt;BR /&gt;proc sgplot data=sashelp.heart;&lt;BR /&gt;  title "Cholesterol Distribution by Weight Class";&lt;BR /&gt;  hbox cholesterol / category=weight_status;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;ods html style=htmlblue;&lt;BR /&gt;ods graphics on / reset=all;&lt;BR /&gt;&lt;BR /&gt;Best regards, Jos</description>
    <pubDate>Fri, 17 Dec 2021 09:42:16 GMT</pubDate>
    <dc:creator>JosvanderVelden</dc:creator>
    <dc:date>2021-12-17T09:42:16Z</dc:date>
    <item>
      <title>SAS Upgrade -&gt; ERROR: Unable to establish ODS Graphics context.</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Upgrade-gt-ERROR-Unable-to-establish-ODS-Graphics-context/m-p/786298#M23556</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;We just upgrading our SAS server :&lt;/P&gt;&lt;P&gt;Version SAS&amp;nbsp;: 9.04.01M7P08062020&lt;BR /&gt;Plate-forme SAS&amp;nbsp;: Linux LIN X64 5.10.0-9-amd64&lt;/P&gt;&lt;P&gt;SAS Studio Version&amp;nbsp;: 3.81 (Edition Basic)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When I try to run code which was working well befor the upgrade I have this error message:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;ERROR: Unable to establish ODS Graphics context.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the first error message when I submit code and each time I try to use ODS (sgplot or other function)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I try to look over internet about this problem but nothing appears.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 16 Dec 2021 14:09:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Upgrade-gt-ERROR-Unable-to-establish-ODS-Graphics-context/m-p/786298#M23556</guid>
      <dc:creator>sesboue</dc:creator>
      <dc:date>2021-12-16T14:09:17Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Upgrade -&gt; ERROR: Unable to establish ODS Graphics context.</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Upgrade-gt-ERROR-Unable-to-establish-ODS-Graphics-context/m-p/786424#M23558</link>
      <description>Was the .cfg file on the server changed/updated when you upgraded the software?&lt;BR /&gt;If yes, verify if you have "-SASUSER" specified correctly in the config-flie.&lt;BR /&gt;There has been a single report on .cfg having -USER in stead of -SASUSER. But no proof that this was caused by the upgrade.&lt;BR /&gt;&lt;BR /&gt;If not can you start the server and run the code below and attach the log?&lt;BR /&gt;ods graphics on / &lt;BR /&gt;     width=3.25in&lt;BR /&gt;     outputfmt=gif&lt;BR /&gt;     imagemap=on&lt;BR /&gt;     imagename="MyBoxplot"&lt;BR /&gt;     border=off;&lt;BR /&gt;&lt;BR /&gt;ods html file="Boxplot-Body.html" &lt;BR /&gt;     style=journal;&lt;BR /&gt;&lt;BR /&gt;proc sgplot data=sashelp.heart;&lt;BR /&gt;  title "Cholesterol Distribution by Weight Class";&lt;BR /&gt;  hbox cholesterol / category=weight_status;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;ods html style=htmlblue;&lt;BR /&gt;ods graphics on / reset=all;&lt;BR /&gt;&lt;BR /&gt;Best regards, Jos</description>
      <pubDate>Fri, 17 Dec 2021 09:42:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Upgrade-gt-ERROR-Unable-to-establish-ODS-Graphics-context/m-p/786424#M23558</guid>
      <dc:creator>JosvanderVelden</dc:creator>
      <dc:date>2021-12-17T09:42:16Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Upgrade -&gt; ERROR: Unable to establish ODS Graphics context.</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Upgrade-gt-ERROR-Unable-to-establish-ODS-Graphics-context/m-p/786515#M23561</link>
      <description>&lt;P&gt;If you speak of the file ./SASFoundation/9.4/sasv9.cfg we have&lt;/P&gt;&lt;P&gt;-SASUSER ~/sasuser.v94&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I ran the code you gave and the log prints&lt;/P&gt;&lt;DIV class=""&gt;&lt;PRE&gt;&lt;CODE class=""&gt;1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
NOTE: les instructions ODS dans l'environnement SAS Studio risquent de désactiver certaines fonctionnalités de sortie.
73
74 ods graphics on /
75 width=3.25in
76 outputfmt=gif
77 imagemap=on
78 imagename="MyBoxplot"
79 border=off;
80
81 ods html file="Boxplot-Body.html"
82 style=journal;
NOTE: Writing HTML Body file: Boxplot-Body.html
ERROR: Insufficient authorization to access /export/sas/SASHome/studioconfig/Boxplot-Body.html.
ERROR: No body file. HTML output will not be created.
83
84 proc sgplot data=sashelp.heart;
85 title "Cholesterol Distribution by Weight Class";
86 hbox cholesterol / category=weight_status;
87 run;

NOTE: PROCEDURE SGPLOT a utilisé (Durée totale du traitement) :
real time 3.01 seconds
cpu time 0.20 seconds

WARNING: RTF destination does not support GIF images. Using the default static format.
NOTE: There were 5209 observations read from the data set SASHELP.HEART.

88
89 ods html style=htmlblue;
NOTE: Writing HTML Body file: sashtml3.htm
ERROR: Insufficient authorization to access /export/sas/SASHome/studioconfig/sashtml3.htm.
ERROR: No body file. HTML output will not be created.
90 ods graphics on / reset=all;
91
92 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
104&lt;/CODE&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;I have an image still. I try to modify your code about the insufficient authorisation&lt;BR /&gt;ods html file="/home/personnels/sesboue/tmp/Boxplot-Body.html" an the log says&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;BR /&gt;&lt;DIV class=""&gt;&lt;PRE&gt;&lt;CODE class=""&gt;1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
NOTE: les instructions ODS dans l'environnement SAS Studio risquent de désactiver certaines fonctionnalités de sortie.
73
74 ods graphics on /
75 width=3.25in
76 outputfmt=gif
77 imagemap=on
78 imagename="MyBoxplot"
79 border=off;
80
81 ods html file="/home/personnels/sesboue/tmp/Boxplot-Body.html"
82 style=journal;
NOTE: Writing HTML Body file: /home/personnels/sesboue/tmp/Boxplot-Body.html
83
84 proc sgplot data=sashelp.heart;
85 title "Cholesterol Distribution by Weight Class";
86 hbox cholesterol / category=weight_status;
87 run;

NOTE: PROCEDURE SGPLOT a utilisé (Durée totale du traitement) :
real time 1.45 seconds
cpu time 0.22 seconds

WARNING: RTF destination does not support GIF images. Using the default static format.
WARNING: GPATH or PATH is not a writable directory. It will be ignored.
NOTE: There were 5209 observations read from the data set SASHELP.HEART.

88
89 ods html style=htmlblue;
90 ods graphics on / reset=all;
91
92 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
104&lt;/CODE&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;Nothing very revelant for me&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;The problem seems tricky and perhaps&amp;nbsp; it is not from the installation: I ran an other code directly after connecting to the server and all is OK. After, I ran the code where the error appears. If I try to rerun the first code then I have the same error now.&lt;/DIV&gt;&lt;BR /&gt;The code which cause the problem:&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;PRE&gt;&lt;CODE class=""&gt;%let wd=/home/personnels/sesboue/DevoirAncien;

options user="&amp;amp;wd" nodate;

filename fileACS "&amp;amp;wd/AC_Survey_2009-2010.csv" ;

%let download_url = "https://sesboue.users.lmno.cnrs.fr/data/AC_Survey_2009-2010_SAAD.csv";

proc http url=&amp;amp;download_url
   method="get" out=fileACS;
run;

proc import datafile=fileACS
   dbms=csv
   out=acsurvey replace;
   delimiter=";";
run;

data acsurvey;
   set acsurvey;
&lt;BR /&gt;   employe="Non";
   if empstat="Employed" then employe="Oui";

   select;
   when (age &amp;lt;= 29) age_cat="[18-29]";
   when (age &amp;gt;=30 and age &amp;lt;= 39) age_cat="[30-39]";
   when (age &amp;gt;=40 and age &amp;lt;= 49) age_cat="[40-49]";
   when (age &amp;gt;=50) age_cat="[50-65]";
   otherwise;
   end;
run;


title "La table acsurvey";
&lt;BR /&gt;proc contents data=acsurvey; run;

proc means data=acsurvey;
  var _numeric_; &lt;BR /&gt;run;

proc freq data=acsurvey;
  table _character_;
run;

title "La variable empstat";
title2 "Diagramme en barres verticales";
&lt;BR /&gt;proc sgplot data=acsurvey;
   vbar empstat /datalabel;
   yaxis label="Effectifs";
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;Thanks for the help&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;Andre&lt;/DIV&gt;</description>
      <pubDate>Fri, 17 Dec 2021 16:34:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Upgrade-gt-ERROR-Unable-to-establish-ODS-Graphics-context/m-p/786515#M23561</guid>
      <dc:creator>sesboue</dc:creator>
      <dc:date>2021-12-17T16:34:59Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Upgrade -&gt; ERROR: Unable to establish ODS Graphics context.</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Upgrade-gt-ERROR-Unable-to-establish-ODS-Graphics-context/m-p/810716#M24293</link>
      <description>&lt;P&gt;While researching this error, I found the following usage note that links the error to the USER system option. While I am still confused about the error behaviour I am seeing, this may be useful to you or others with the same error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://support.sas.com/kb/68/936.html" target="_blank"&gt;68936 - Using the SAS® SG procedures or ODS Graphics with the USER system option results in "Error: Could not establish ODS Graphics context"&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2022 18:26:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Upgrade-gt-ERROR-Unable-to-establish-ODS-Graphics-context/m-p/810716#M24293</guid>
      <dc:creator>mtnbikerjoshua</dc:creator>
      <dc:date>2022-04-29T18:26:46Z</dc:date>
    </item>
  </channel>
</rss>

