DATA Step, Macro, Functions and more

SAS 9.4 under Win10 cannot %INCLUDE a program with a UNC address

Accepted Solution Solved
Reply
Contributor
Posts: 69
Accepted Solution

SAS 9.4 under Win10 cannot %INCLUDE a program with a UNC address

I have a program that has been running just fine under Win7 for a few years.  Now I've got a new box with Win10 on it and it broke.

 

The program %INCLUDEs other SAS programs stored on network drives.  We have to use Universal Naming Convention file names because users in different departments have their network drives mapped differently.  This particular program works just fine under Win7 (really, it does, I swear) but under Win 10 it returns the file doesn't exist error.

 

I tried googling it but the blogs and web sites that might be useful are blocked. 

 

Does anyone have any experience with Win10 including UNC file names?  

 

269  %include "\\WFSIADMNSF21\C_MTGBCD_Groups\Campaign_Execution_Reporting\sas_execution\templates\ SAS_teradata_&_environment._Template\code\sas_cef_template_005_pre_setup_checks.sas" /source;


WARNING: Physical file does not exist, \\WFSIADMNSF21\C_MTGBCD_Groups\Campaign_Execution_Reporting\ sas_execution\templates\SAS_teradata_development_Template\code\sas_cef_template_005_pre_setup_checks.sas.

 

ERROR: Cannot open %INCLUDE file \\WFSIADMNSF21\C_MTGBCD_Groups\Campaign_Execution_Reporting\sas_execution\templates\SAS_teradata_development_Template\code\sas_cef_template_005_pre_setup_checks.sas.
270


Accepted Solutions
Solution
‎10-11-2017 01:11 PM
Community Manager
Posts: 2,955

Re: SAS 9.4 under Win10 cannot %INCLUDE a program with a UNC address

Posted in reply to bentleyj1

Is all of this on a local Windows machine, or are you accessing via a client like SAS Enterprise Guide?  If the latter, then you need to set "Trusted for Delegation" on the Windows box.  This will allow Windows to make the additional network hop on behalf of your program.

 

If that's not it -- are you running the SAS job with your native Windows credentials, or is it running under another identity that might not have network access?

View solution in original post


All Replies
Solution
‎10-11-2017 01:11 PM
Community Manager
Posts: 2,955

Re: SAS 9.4 under Win10 cannot %INCLUDE a program with a UNC address

Posted in reply to bentleyj1

Is all of this on a local Windows machine, or are you accessing via a client like SAS Enterprise Guide?  If the latter, then you need to set "Trusted for Delegation" on the Windows box.  This will allow Windows to make the additional network hop on behalf of your program.

 

If that's not it -- are you running the SAS job with your native Windows credentials, or is it running under another identity that might not have network access?

Contributor
Posts: 69

Re: SAS 9.4 under Win10 cannot %INCLUDE a program with a UNC address

Posted in reply to ChrisHemedinger

Thanks Chris and SASKiwi.  The app switches to a non-user id that didn't have access to the network location I needed to use.  Got it fixed.

 

John

Super User
Posts: 3,260

Re: SAS 9.4 under Win10 cannot %INCLUDE a program with a UNC address

Posted in reply to bentleyj1

Try the UNC path in Windows Explorer. You may need to get your IT folks involved in fixing this.

☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 3 replies
  • 102 views
  • 1 like
  • 3 in conversation