BookmarkSubscribeRSS Feed
Calcite | Level 5
47     data _null_ ;
48       file 'T:\GroupDrive\m\Out\report01&sysdate9..txt' ;
49       set ;
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.

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.

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.

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.



Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.


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
  • 4 in conversation