BookmarkSubscribeRSS Feed
wmjklein
Calcite | Level 5

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

2 REPLIES 2
Reeza
Super User
Is this a SAS installation at your company? It's fully possible to write to a Windows location but that's something your administrator has to set up, it's not a software limitation AFAIK. I would be surprised if you couldn't have SAS Studio running on Windows Server though Unix is ultimately cheaper.
Kurt_Bremser
Super User

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.

Ready to join fellow brilliant minds for the SAS Hackathon?

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!
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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 530 views
  • 0 likes
  • 3 in conversation