Learning SAS? Welcome to the exclusive online community for all SAS learners.

Trying some graphics

Accepted Solution Solved
Reply
Occasional Contributor Vic
Occasional Contributor
Posts: 7
Accepted Solution

Trying some graphics

Hi, I'm trying to code some simple graphics (at first Smiley Happy), using SAS Studio. The code is working well on my business machine. I'm trying to make some programms with SAS Studio.

Can you help me with simple:

ods Html gpath='/folders/myfolders/_Daten/';;

Proc Gchart data = metrics;

vbar quarter / type=sum sumvar=actual

raxis=axis1 maxis=axis2 coutline=chocolate width=14 space=14;

Run;

Ods html close;

The Ods Hmtl and ods html Close encounter the following error Messages:

58         ods Html gpath='/folders/myfolders/_Daten/';;

NOTE: Writing HTML Body file: sashtml14.htm

ERROR: Berechtigung reicht nicht aus für Zugriff auf /opt/sasinside/SASConfig/Lev1/SASApp/sashtml14.htm.

ERROR: No body file. HTML output will not be created.

59         Proc Gchart data = metrics;

ERROR: Procedure GCHART not found.

60         vbar quarter / type=sum sumvar=actual

61         raxis=axis1 maxis=axis2 coutline=chocolate width=14 space=14;

62         Run;

Many thanks, Regards, Vic


Accepted Solutions
Solution
‎07-21-2014 03:12 PM
Super User
Posts: 19,815

Re: Trying some graphics

The University Edition does not support SAS/GRAPH.

Look at the SG procedures, such as ie SGSCATTER, SGPLOT

SAS/GRAPH(R) 9.2: Statistical Graphics Procedures Guide, Second Edition

View solution in original post


All Replies
Solution
‎07-21-2014 03:12 PM
Super User
Posts: 19,815

Re: Trying some graphics

The University Edition does not support SAS/GRAPH.

Look at the SG procedures, such as ie SGSCATTER, SGPLOT

SAS/GRAPH(R) 9.2: Statistical Graphics Procedures Guide, Second Edition

Occasional Contributor Vic
Occasional Contributor
Posts: 7

Re: Trying some graphics

Thank you very much, I will look at that book.

SAS Super FREQ
Posts: 8,866

Re: Trying some graphics

Hi:

  I finally had a chance to take some screen shots. Here is code that will create an HTML file using SGPLOT in SAS Studio/SAS University Edition and also create a PDF file. As you can see from the code, you are probably going to need both PATH= and GPATH= as well as FILE= for the ODS HTML invocation. But for PDF, a simple FILE= will work OK. The reason is that ODS HTML makes an HTML "wrapper" file that needs a location and a name and the graph image created by the procedure needs a path (the name comes from the procedure or procedure options). Screen shots show before running and the log and output location after running.

Cynthia

ods Html gpath='/folders/myfolders/all_output/' (url=none)

         path='/folders/myfolders/all_output/' (url=none)

         file='mygraf.html' style=sasweb;

ods pdf file='/folders/myfolders/all_output/mygraf.pdf' style=sasweb;

   

Proc sgplot data = sashelp.prdsale;

vbar product/ stat=sum response=actual

     group=region groupdisplay=cluster;

Run;

   

Ods _all_ close;


_1_before_code.pnglog_after_running_code.png
Occasional Contributor Vic
Occasional Contributor
Posts: 7

Re: Trying some graphics

Posted in reply to Cynthia_sas

Dear Cynthia,

I just tried your code and it works absolutely fine Smiley Happy

Many thanks for your support. So, the sgplot works, and will help me to find further solutions about creating graphics.

Thank you very much, Vic

Trusted Advisor
Posts: 3,214

Re: Trying some graphics

There are several issues in this, those are:

- Proc gchart is part of the graphics licensing. This is not made available within the UE. When you do a proc setinit. you see it is not there.

  The graphics that are available are part of statistics http://support.sas.com/documentation/cdl/en/grsggs/64979/HTML/default/viewer.htm#titlepage.htm

- The ODS HTML is for generating html-files. Html output is generating a lot of files at te OS level.

  You have redirected the graphical files to writable location. The html-files are going to the default current directory.

  Here you have your Error as that location is not writable for you.

  Very strange as normal behavior in a IT-system you would expect the default setting is not optimal but at  least workable.

  There is a sas-note on this how to correct this. But this is made impossible at the UE.

  Your only way to circumvent that is avoiding the current default directory and specify always a location. Generating Html there are a lot of options specifying a physical location.

---->-- ja karman --<-----
🔒 This topic is solved and locked.

Need further help from the community? Please ask a new question.

Discussion stats
  • 5 replies
  • 2676 views
  • 2 likes
  • 4 in conversation