BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
J111
Quartz | Level 8

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.

 

J111_0-1710393706678.png

 

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:

J111_1-1710393761709.pngJ111_2-1710393801763.png

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
yabwon
Onyx | Level 15

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

_______________
Polish SAS Users Group: www.polsug.com and communities.sas.com/polsug

"SAS Packages: the way to share" at SGF2020 Proceedings (the latest version), GitHub Repository, and YouTube Video.
Hands-on-Workshop: "Share your code with SAS Packages"
"My First SAS Package: A How-To" at SGF2021 Proceedings

SAS Ballot Ideas: one: SPF in SAS, two, and three
SAS Documentation



View solution in original post

9 REPLIES 9
andreas_lds
Jade | Level 19

Seeing both logs would be useful. Compare the options in Results/Graph.

J111
Quartz | Level 8

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.

J111
Quartz | Level 8

following your question - our results\graph option are identical

 

J111_0-1710404272882.png

 

Sajid01
Meteorite | Level 14

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.


 

J111
Quartz | Level 8

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/"

 

yabwon
Onyx | Level 15

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

_______________
Polish SAS Users Group: www.polsug.com and communities.sas.com/polsug

"SAS Packages: the way to share" at SGF2020 Proceedings (the latest version), GitHub Repository, and YouTube Video.
Hands-on-Workshop: "Share your code with SAS Packages"
"My First SAS Package: A How-To" at SGF2021 Proceedings

SAS Ballot Ideas: one: SPF in SAS, two, and three
SAS Documentation



J111
Quartz | Level 8

Hello,

Unfortunately this did not solve the issue.

 

Best regards. 

Sajid01
Meteorite | Level 14

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;
J111
Quartz | Level 8

Hello,

 

In general we don't work with SAS studio.

 

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 9 replies
  • 1697 views
  • 0 likes
  • 4 in conversation