BookmarkSubscribeRSS Feed
agdesilva
Calcite | Level 5
47     data _null_ ;
48       file 'T:\GroupDrive\m\Out\report01&sysdate9..txt' ;
49       set source.report ;
50       put rpt_dt mmddyy10. " , "
51            facility $3. " , "
52    metric " , "
53    adm_ct  " , "
54    num_harm ;
55     run ;

ERROR: Insufficient authorization to access /apps/sas/sas92/config/SASMachine/T:\GroupDrive\Out\report01&sysdate9..txt.

As you can see, I attempted to write to a file on a network drive.  EG puts a prefix that relates more to the location of the machine than anywhere on our windows network.

@agdesilva
3 REPLIES 3
Reeza
Super User

When you go to run your code is there an option to RUN LOCAL?

If not, then you're running EG on a server and you'll need to create the file on the server and then download it.

ballardw
Super User

And the / tells us your using a SAS Unix system, probably on a server. You would need a path that the server sees to that location and use appropriate syntax. I suspect that the SAS server doesn't match the network drive mappings you have from your PC.

TomKari
Onyx | Level 15

Talk to your SAS administrator. They should be able to tell you which locations on the SAS server that you should write to, and whether any of them are also available to Windows by something like Samba.

Tom

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

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
  • 3 replies
  • 1659 views
  • 8 likes
  • 4 in conversation