My company recently upgraded all of our workstations to Windows 10 and since the upgrade I have been having intermittent issues with my SAS EG automated tasks that I have set up using Windows Task Scheduler. The error happens when I am not logged into the PC but the strange thing is that out of the 50 tasks I have scheduled it is only ever a random 3-4 that have the error. It appears that the tasks execute and run; however, I believe the issue is being caused by the "Run whether using is logged on or not" or the "Run with highest privileges" options not taking effect even though both gave been enabled. The error I typically receive is where the FILEPATH is a for a mapped network drive:
ERROR: Windows error code: 87 in hx_disk_is_dir for FILEPATH, The parameter is incorrect.
1731 /************************* INITIALIZE EXTERNAL DATA LOCATION **************************/
1732
1733 libname DATA "FILEPATH";
ERROR: Library DATA is not in a valid format for access method RANDOM.
ERROR: Error in the LIBNAME statement.
I have also went through the attached document and made sure all settings have been enabled correctly. This use to work flawlessly on my Windows 7 machine.
The following indicate the possibility of a network error.
The error I typically receive is where the FILEPATH is a for a mapped network drive:
ERROR: Windows error code: 87 in hx_disk_is_dir for FILEPATH
The network location may not be available at that instant.
Typically accessing the remote shared location require that the user_id used to run the program has appropriate access to that location.
Such permissions are typically granted at the AD level.
The windows admin at your place may be better placed to address the issue.
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.