Hello
We are using SEG 8.2 SAS GUIDE 9.4 on Linux server
I am working on my station without problems.
Yet, my colleague at the same site has an issue with creating a graph.
Our tool options are identical.
Please find her log below. The graph is not created.
Your help is appreciated.
Kind regards.
1 ;*';*";*/;quit;run;
2 OPTIONS PAGENO=MIN;
3 %LET _CLIENTTASKLABEL='Program';
4 %LET _CLIENTPROCESSFLOWNAME='Process Flow';
5 %LET _CLIENTPROJECTPATH='';
6 %LET _CLIENTPROJECTPATHHOST='';
7 %LET _CLIENTPROJECTNAME='';
8 %LET _SASPROGRAMFILE='';
9 %LET _SASPROGRAMFILEHOST='';
10
11 ODS _ALL_ CLOSE;
12 OPTIONS DEV=SVG;
13 GOPTIONS XPIXELS=0 YPIXELS=0;
14 %macro HTML5AccessibleGraphSupported;
15 %if %_SAS_VERCOMP_FV(9,4,4, 0,0,0) >= 0 %then ACCESSIBLE_GRAPH;
16 %mend;
17 FILENAME EGHTML TEMP;
18 ODS HTML5(ID=EGHTML) FILE=EGHTML
19 OPTIONS(BITMAP_MODE='INLINE')
20 %HTML5AccessibleGraphSupported
21 ENCODING='utf-8'
22 STYLE=HTMLBlue
23 NOGTITLE
24 NOGFOOTNOTE
25 GPATH=&sasworklocation
26 ;
NOTE: Writing HTML5(EGHTML) Body file: EGHTML
27
28
29 ods graphics on ;
30
31 title "WOW";
32 proc sgplot data=sashelp.class;
33 series x=weight y=height / group=sex ;
34 run;
NOTE: PROCEDURE SGPLOT used (Total process time):
real time 2.66 seconds
cpu time 0.07 seconds
NOTE: There were 19 observations read from the data set SASHELP.CLASS.
35
36
37 %LET _CLIENTTASKLABEL=;
38 %LET _CLIENTPROCESSFLOWNAME=;
39 %LET _CLIENTPROJECTPATH=;
40 %LET _CLIENTPROJECTPATHHOST=;
41 %LET _CLIENTPROJECTNAME=;
42 %LET _SASPROGRAMFILE=;
43 %LET _SASPROGRAMFILEHOST=;
44
45 ;*';*";*/;quit;run;
46 ODS _ALL_ CLOSE;
47
48
49 QUIT; RUN;
50
The tool options:
Try to run this:
FILENAME EGHTML "%sysfunc(pathname(work))/test.html"; /* <---------------- */
ODS HTML5(ID=EGHTML) FILE=EGHTML
OPTIONS(BITMAP_MODE='INLINE')
%HTML5AccessibleGraphSupported
ENCODING='utf-8'
STYLE=HTMLBlue
NOGTITLE
NOGFOOTNOTE
GPATH=&sasworklocation
;
title "WOW";
proc sgplot data=sashelp.class;
series x=weight y=height / group=sex ;
run;
Bart
Seeing both logs would be useful. Compare the options in Results/Graph.
Following your request, please find my log below:
1 ;*';*";*/;quit;run;
2 OPTIONS PAGENO=MIN;
3 %LET _CLIENTTASKLABEL='Program 4';
4 %LET _CLIENTPROCESSFLOWNAME='Process Flow';
5 %LET _CLIENTPROJECTPATH='\\mvsrvpikuah\vpikuah\PIKUAHJR\BI\Series\SAS\EG\TEST\STEPWISE.egp';
6 %LET _CLIENTPROJECTPATHHOST='PC0NC6Q5';
7 %LET _CLIENTPROJECTNAME='STEPWISE.egp';
8 %LET _SASPROGRAMFILE='';
9 %LET _SASPROGRAMFILEHOST='';
10
11 ODS _ALL_ CLOSE;
12 OPTIONS DEV=SVG;
13 GOPTIONS XPIXELS=0 YPIXELS=0;
14 %macro HTML5AccessibleGraphSupported;
15 %if %_SAS_VERCOMP_FV(9,4,4, 0,0,0) >= 0 %then ACCESSIBLE_GRAPH;
16 %mend;
17 FILENAME EGHTML TEMP;
18 ODS HTML5(ID=EGHTML) FILE=EGHTML
19 OPTIONS(BITMAP_MODE='INLINE')
20 %HTML5AccessibleGraphSupported
21 ENCODING='utf-8'
22 STYLE=HTMLBlue
23 NOGTITLE
24 NOGFOOTNOTE
25 GPATH=&sasworklocation
26 ;
NOTE: Writing HTML5(EGHTML) Body file: EGHTML
27
28
29
30 ods graphics on ;
31
32 title "WOW";
33 proc sgplot data=sashelp.class;
34 series x=weight y=height / group=sex ;
35 run;
NOTE: PROCEDURE SGPLOT used (Total process time):
real time 2.13 seconds
cpu time 0.07 seconds
NOTE: There were 19 observations read from the data set SASHELP.CLASS.
following your question - our results\graph option are identical
Hello @J111
It should work.
Make sure this resolves "GPATH=&sasworklocation"
You can test by using %put &=sasworklocation; in your code. and check the log.
Thanks for your reply,
We checked and the Gpath is resolved. However, the graph is not created. Should I post this question in the EGUIDE group ? Thanks
SASWORKLOCATION="/saswork/SAS_work5FA90001B6DD_boi-dpp-sas.ad.boi.gov.il/SAS_workDFA50001B6DD_boi-dpp-sas.ad.boi.gov.il/"
Try to run this:
FILENAME EGHTML "%sysfunc(pathname(work))/test.html"; /* <---------------- */
ODS HTML5(ID=EGHTML) FILE=EGHTML
OPTIONS(BITMAP_MODE='INLINE')
%HTML5AccessibleGraphSupported
ENCODING='utf-8'
STYLE=HTMLBlue
NOGTITLE
NOGFOOTNOTE
GPATH=&sasworklocation
;
title "WOW";
proc sgplot data=sashelp.class;
series x=weight y=height / group=sex ;
run;
Bart
Hello,
Unfortunately this did not solve the issue.
Best regards.
Hello @J111
Try running only this code in SAS Studio
title "WOW";
proc sgplot data=sashelp.class;
series x=weight y=height / group=sex ;
run;
Hello,
In general we don't work with SAS studio.
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.