从另一个会话引用远程 SAS 工作库
SAS 会话曾经遇到过问题,但由于远程工作库 (RWORK) 中存在关键文件而无法关闭会话吗?
我当然有! 那么如何从另一个(新)会话访问该库?
Ever had a problem with a SAS session, but been unable to close the session due to having critical files in your remote work library (RWORK)??
I certainly have! So how do you access that library from another (new) session?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
这是我编写的一个宏,用于将多个 libref 分配给您拥有的所有远程工作目录:
Here's a macro I wrote to assign a multiple libref to all remote work directories owned by you :
不确定提出一个你知道答案的问题的道德规范,但希望其他人会发现这很有用!
这会将您需要的代码放入日志中。 您可能需要更改的位是 server= 选项 - 这应该是您登录的环境的名称(不知道如何以编程方式引用它 - 其他人知道吗?)
显然原始会话需要保持打开状态(以防止 RWORK 被擦除)并且第二个会话需要登录到同一服务器...
not sure of the ethics of asking a question you know the answer to, but hopefully others will find this useful!
This will put the code you need in the log. The bit you may need to change is the server= option - this should be the name of the environment you have logged onto (not sure how to reference this programmatically - does anyone else know?)
Obviously the original session needs to remain open (to prevent RWORK from being wiped) and the second session needs to be logged onto the same server...
回应 Chris J 的回应 - 缺少宏..
response to Chris J's response - missing macro..