在使用SaSPy时,如何找到RWORK库所在的位置?
我尝试了sas.dirlist(),但是找不到任何东西。
可能是因为远程访问?
下面是我的设置连接
import saspy
import pandas as pd
import sas_kernel
import saspy.sascfg
# connexion
sas = saspy.SASsession(cfgfile='C:\\Users\\Anaconda3\\Lib\\site-packages\\saspy\\sascfg.py', cfgname='iomcom',results='html')
Username: user
Password: pwd
SAS Connection established.
%%SAS
options comamid=tcp;
let srvs = server2;
signon noscript remote=srvs user="&Sysuserid" password='pwd';
LIBNAME rwork slibref=work server=srvs;
NOTE: Libref RWORK was successfully assigned as follows:
Engine: REMOTE 发布于 2022-03-14 15:50:18
我怀疑SASPy看不见你说的遥控器。您当然可以通过在SAS中运行代码来找到答案,只需在rsubmit块中运行以下代码:
%put %sysfunc(getoption(work));因此,让python将其发送到format块中的SAS中,您应该将结果返回到日志中(或者以对您方便的其他格式返回)。
https://stackoverflow.com/questions/71469356
复制相似问题