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@gmail.com
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

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 2315 views
  • 8 likes
  • 4 in conversation