SAS PROC EXPORT以确保位置安全

时间:2016-09-06 09:39:16

标签: sas

我正在尝试将tabdelimited文件存储到需要登录(用户名+密码)的共享文件夹中。

当我通过Windows资源管理器打开(并登录)该位置时,PROC EXPORT运行时没有错误。

如果我在Windows会话期间未登录而运行它,我会在日志中收到通用I / O错误。

有没有办法将我的登录名和密码添加到PROC EXPORT程序?

1 个答案:

答案 0 :(得分:1)

proc export中没有任何内容允许这样做。我建议在proc导出之前运行一个windows命令来打开共享,例如:

X "net use \\server\share /user:test /password:test"

filename mypipe pipe "net use \\server\share /user:test /password:test";
data _null_; infile mypipe; input; list; run;
filename mypipe close;

(信用 - https://serverfault.com/questions/580369/windows-shares-via-command-line-with-user-pass-without-mapping-the-drive

相关问题