Hello,
Please find my question on EGUIDE graph posted here :
https://communities.sas.com/t5/SAS-Programming/An-sgplot-is-not-created-with-Eguide/m-p/920239
Thanks
1) try making:
ODS HTML5 FILE=TEST
...
;
2) what options do you have in:
Bart
Solution is here:
🙂
Bart
Hello,
Please find the log for the program you sent:
1 ;*';*";*/;quit;run;
2 OPTIONS PAGENO=MIN;
3 %LET _CLIENTTASKLABEL='Program';
4 %LET _CLIENTPROCESSFLOWNAME='Process Flow';
5 %LET _CLIENTPROJECTPATH='\\mvsrvpikuah\vpikuah\Project.egp';
6 %LET _CLIENTPROJECTPATHHOST='PC0V8PY0';
7 %LET _CLIENTPROJECTNAME='Project.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 FILENAME EGHTML "%sysfunc(pathname(work))/test.html";
ERROR: At least one file associated with fileref EGHTML is still in use.
ERROR: Error in the FILENAME statement.
28 ! /* <---------------- */
29
30 ODS HTML5(ID=EGHTML) FILE=EGHTML
31 OPTIONS(BITMAP_MODE='INLINE')
32 %HTML5AccessibleGraphSupported
33 ENCODING='utf-8'
34 STYLE=HTMLBlue
35 NOGTITLE
36 NOGFOOTNOTE
37 GPATH=&sasworklocation
38 ;
NOTE: Writing HTML5(EGHTML) Body file: EGHTML
39
40 title "WOW";
41 proc sgplot data=sashelp.class;
42 series x=weight y=height / group=sex ;
43 run;
NOTE: PROCEDURE SGPLOT used (Total process time):
real time 2.20 seconds
cpu time 0.06 seconds
NOTE: There were 19 observations read from the data set SASHELP.CLASS.
Try adding:
FILENAME EGHTML clear;
before:
FILENAME EGHTML "%sysfunc(pathname(work))/test.html";
If it doesn't help do:
FILENAME TEST "%sysfunc(pathname(work))/test.html";
ODS HTML5(ID=EGHTML) FILE=TEST
...
...
...
;
Hello,
Please find below the log from your last program - the graph is still not created:-
1 ;*';*";*/;quit;run;
2 OPTIONS PAGENO=MIN;
3 %LET _CLIENTTASKLABEL='Program 1';
4 %LET _CLIENTPROCESSFLOWNAME='Process Flow';
5 %LET _CLIENTPROJECTPATH='\\mvsrvpikuah\vpikuah\Project.egp';
6 %LET _CLIENTPROJECTPATHHOST='PC0V8PY0';
7 %LET _CLIENTPROJECTNAME='Project.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 FILENAME TEST "%sysfunc(pathname(work))/test.html";
29 ODS HTML5(ID=EGHTML) FILE=TEST
30 OPTIONS(BITMAP_MODE='INLINE')
31 %HTML5AccessibleGraphSupported
32 ENCODING='utf-8'
33 STYLE=HTMLBlue
34 NOGTITLE
35 NOGFOOTNOTE
36 GPATH=&sasworklocation
37 ;
NOTE: Writing HTML5(EGHTML) Body file: TEST
38
39 title "WOW";
40 proc sgplot data=sashelp.class;
41 series x=weight y=height / group=sex ;
42 run;
NOTE: PROCEDURE SGPLOT used (Total process time):
real time 2.16 seconds
cpu time 0.06 seconds
NOTE: There were 19 observations read from the data set SASHELP.CLASS.
1) try making:
ODS HTML5 FILE=TEST
...
;
2) what options do you have in:
Bart
2)
Hello, Please find my option settings - for me the graph is plotted.
However, my colleague has the same settings but the graph is not plotted for her.
could you paste your colleague settings? maybe there is something different...
1)
Hello, this code you gave is dint help, the graph was not created
1 ;*';*";*/;quit;run;
2 OPTIONS PAGENO=MIN;
3 %LET _CLIENTTASKLABEL='Program 1';
4 %LET _CLIENTPROCESSFLOWNAME='Process Flow';
5 %LET _CLIENTPROJECTPATH='\\mvsrvpikuah\vpikuah\PIKUAHJR\YEHIDA\עובדים\שיר דבורה\השוואת סניפים\רגרסיה\Project.egp';
6 %LET _CLIENTPROJECTPATHHOST='PC0V8PY0';
7 %LET _CLIENTPROJECTNAME='Project.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 ods graphics on ;
30
31 FILENAME TEST "%sysfunc(pathname(work))/test.html";
32 ODS HTML5 FILE=TEST
33 OPTIONS(BITMAP_MODE='INLINE')
34 %HTML5AccessibleGraphSupported
35 ENCODING='utf-8'
36 STYLE=HTMLBlue
37 NOGTITLE
38 NOGFOOTNOTE
39 GPATH=&sasworklocation
40 ;
NOTE: Writing HTML5 Body file: TEST
41
42 title "WOW";
43 proc sgplot data=sashelp.class;
44 series x=weight y=height / group=sex ;
45 run;
NOTE: PROCEDURE SGPLOT used (Total process time):
real time 2.28 seconds
cpu time 0.11 seconds
NOTE: There were 19 observations read from the data set SASHELP.CLASS.
does your colleague runs the project from a network drive?
\\mvsrvpikuah\vpikuah\Project.egp
could she copy it locally ?
Bart
Hello,
She copied it locally and still the graph is not created
ok, (maybe it's to early for the "ultimate IT solution" but...) try to reinstall EG?
Hello,
The options are identical on her computer, we doubled check.
All the test code in the above correspondence did not help.
2 other colleagues have no issue with created a SEG plot.
Only one colleague on the same site has an issue.
Thanks & regards
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.