07-21-2014 03:04 PM
Hi, I'm trying to code some simple graphics (at first ), 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;
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;
Many thanks, Regards, Vic
08-16-2014 12:03 PM
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.
ods Html gpath='/folders/myfolders/all_output/' (url=none)
ods pdf file='/folders/myfolders/all_output/mygraf.pdf' style=sasweb;
Proc sgplot data = sashelp.prdsale;
vbar product/ stat=sum response=actual
Ods _all_ close;
08-16-2014 01:09 PM
I just tried your code and it works absolutely fine
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
07-21-2014 04:16 PM
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.
Need further help from the community? Please ask a new question.