I think the course was designed for a different implementation, in SAS UE, you will need to provide a file path for the ODS LISTING destination as well as the graphics path.
ods listing file = '/folder/myfolders/myCourseOutput.lst' gpath = '/folders/myfolders/temp/';
Then to see the output you'll have to check the listing, though the HTML output should be almost identical.
Note that if you don't have the temp folder in my folders, you may want to create it. I did explicitly for examples like this so I can just clean them up periodically.
@Tony_Lung wrote:
I was hoping someone could help me with a workaround for this. I installed SAS Studio with the University license to go through the "SAS Programming for R Users" course. When running the code from the demonstration file "SP4R01d01.sas" I ran into an error whenever I ran the following lines together.
ods listing;
ods select basicmeasures histogram qqplot;
proc univariate data=work.birth;
var bwt;
histogram bwt / normal(mu=est sigma=est);
qqplot bwt / normal(mu=est sigma=est);
run;
Whenever I ran these lines together the proc univariate would fail after the first chart, I would see the following errors in the log, and the qqplot would not be produced.
WARNING: GPATH or PATH is not a writable directory. It will be ignored.
ERROR: Cannot write image to SlantFactor. Please ensure that proper disk permissions are set.
ERROR: Cannot write image to SlantFactor. Please ensure that proper disk permissions are set.
NOTE: The SAS System stopped processing this step because of errors.
WARNING: Output 'qqplot' was not created. Make sure that the output object name, label, or path is spelled correctly. Also,
verify that the appropriate procedure options are used to produce the requested output object. For example, verify that
the NOPRINT option is not used.
When I highlighted "ods listing;" and ran that code, then subsequently highlighted and ran the remainder of the steps the proc univariate call completed successfully and generated all the charts without warnings or errors. I don't want to manually run scripts in pieces. Does anyone know a way around this?
FYI - I got the demo file for the course from github. I have attached the whole script to be sure you have the underlying data set.
... View more