BookmarkSubscribeRSS Feed
albertsamaniego
Fluorite | Level 6

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;

 

2 REPLIES 2
ChrisBrooks
Ammonite | Level 13

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.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

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
  • 2 replies
  • 1816 views
  • 2 likes
  • 3 in conversation