I need to mount a certain folder located on a windows share folder on my Home Folder on SAS Studio using a %sysexec or call system command.
I tried using this one but it says ERROR: Shell escape is not valid in this SAS session.
data _null_;
call system ('mount -t cifs <folder to mount> <mount location> -o username=user,password=pwd');
run;
There are two possibilities here:
1. You're running in SAS University Edition in which case you can't mount a folder like that; or
2. The noxcmd option is set on your system (possibly by an administrator http://support.sas.com/documentation/cdl/en/hostwin/69955/HTML/default/viewer.htm#p0xtd57b40ehdfn1jy...
If it's 2 above you may need to get your system administrator to fix it.
In addition to @ChrisBrooks:
3. you might need to have superuser/administrator rights to use mount on the UNIX system, or a sudo enabled for it.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Get started using SAS Studio to write, run and debug your SAS programs.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.