The code below shows an error message that is caused by incorporating a Windows directory name into a program designed for SAS Studio. I need help in directing the output to a Windows destination so that I can read the output using Adobe in a Windows directory. Could someone please tell me how to correct the error?
Thanks
wmjklein
174 /*===============================================================+
175 ||60 |
176 |Set up the pdf file. |
177 +================================================================*/
178 options orientation=landscape;
179 ods _all_ close;
180 ods escapechar='^';
181 ods noresults noproctitle;
182 ods pdf file="C:\DATA\SAS\Weight\movingavg01.pdf"
183 startpage=no; /* No page breaks */
NOTE: Writing ODS PDF output to DISK destination "/pbr/biconfig/940/Lev1/SASApp/C:\DATA\SAS\Weight\movingavg01.pdf", printer "PDF".
184 /* style=styles.test notoc; No table of contents */
185 /*style=bottompageno;*/
186 legend1 label=none
187 position=(top center inside)
188 mode=share;
189 axis1 color=black;
190 axis2 order=('01jan06'd to "&endday"d by month2) value=(font=arial h=7pt) /* label=none */ ;
191 symbol1 interpol=join width=2 colour=red;
192 symbol2 interpol=join width=2 color=blue;
193 title1 f=Times j=l "Last day is &lastday";
194
195 proc gplot data=weight;
196 plot weight*day
197 avg*day
198 /overlay legend
199 vaxis=axis1
200 haxis=axis2;
201 format day monyy5. weight 7.;
202 run;
WARNING: The intervals on the axis labeled "Date" are not evenly spaced.
WARNING: Font ARIAL could not be used.
Font Albany AMT substituted for font ARIAL.
WARNING: No minor tick marks will be drawn because major tick increments have been specified in uneven or unordered intervals.
NOTE: The axis frame outline was drawn in BLACK as specified on the left vertical axis. Any other axis line colors were ignored.
NOTE: 5 observation(s) outside the axis range for the weight * day request.
NOTE: 49 observation(s) contained a MISSING value for the avg * day request.
NOTE: 4 observation(s) outside the axis range for the avg * day request.
203 quit;
NOTE: There were 1459 observations read from the data set WORK.WEIGHT.
NOTE: PROCEDURE GPLOT used (Total process time):
real time 0.07 seconds
[Several lines removed]
204 ods pdf close;
ERROR: Insufficient authorization to access /pbr/biconfig/940/Lev1/SASApp/C:\DATA\SAS\Weight\movingavg01.pdf.
205
Your SAS session runs on a remote UNIX server, so you have to use the appropriate filename syntax, and choose a location where you have write permission. If you use ~ at the start of the path, this will automatically lead to your home directory, which you also see in the navigation pane of SAS Studio. This will make it easy to download the file.
Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.
Register today!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.
Select SAS Training centers are offering in-person courses. View upcoming courses for: