01-28-2015 05:00 PM
|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 " , "|
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.
01-28-2015 05:10 PM
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.
01-28-2015 05:11 PM
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.
01-28-2015 06:14 PM
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.