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.

Develop Code with SAS Studio

Get started using SAS Studio to write, run and debug your SAS programs.

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