BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
HY_KIM
Calcite | Level 5

Scenario 4.

proc sort data=cert.laguardia out=work.laguardia;
by dest;
run;

title 'Laguardia Flights';
ods pdf file='LGA Airport' style=FestivalPrinter;
proc print data=work.laguardia;
by dest;
run;
ods pdf close;

When executing the above code in SAS Studio, an error message is displayed in the log stating,


78 ods pdf close;
"ERROR: Insufficient authorization to access /pbr/biconfig/940/Lev1/SASApp/LGA Airport."
79
80 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
90
Is there a solution to this issue?

1 ACCEPTED SOLUTION

Accepted Solutions
Reeza
Super User
Modify the path to be to a location you can write to, so your user files.

ods pdf file='/home/fkhurshed/coursefiles/LGA Airport.pdf' ....

View solution in original post

2 REPLIES 2
Reeza
Super User
Modify the path to be to a location you can write to, so your user files.

ods pdf file='/home/fkhurshed/coursefiles/LGA Airport.pdf' ....
ballardw
Super User

This sort of message is because you did not specify a path where the file should be created. So the behavior of SAS without that information to use where the program is executing as the "path" and try to use that.

On a system you or your organization controls you should start file names with a path beginning at a drive (Windows), disc mount point, or server url name and path where you have permissions to write files. With a training environment like the practice sessions that path starts at the resource your class is using.

 

You may also want to consider providing an extension of your file such as .PDF to match the expected file type.

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!

LIBNAME 101

Follow along as SAS technical trainer Dominique Weatherspoon expertly answers all your questions about SAS Libraries.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 809 views
  • 2 likes
  • 3 in conversation