我在 STP 服务器上构建了一个测试工具,它为每次测试运行生成独特的会话。我现在遇到的问题是我的一项测试需要使用元数据帐户(并且我生成的会话在 sassrv 系统帐户下运行)。
有关信息,产生这些会话的代码片段如下:
/**
* Execute all the backtest scripts and retain the logs
*/
options sascmd='!sascmd';
%local waitforlist;
%do x=1 %to %get_attrn(backtest_scripts,NLOBS);
signon connx&x;
%syslput LOC_BACKTEST_SCRIPTS=&LOC_BACKTEST_SCRIPTS /remote=connx&x;
%syslput TEST_RUN_NO=&TEST_RUN_NO /remote=connx&x;
%syslput TEST_ID=Test&x /remote=connx&x;
%syslput TEST_PGM=&&test&x /remote=connx&x;
%syslput LOC_TEST_RESULTS=&LOC_BACKTEST_LOGS\Test_&TEST_RUN_NO
/remote=connx&x;
%syslput LOG_LOC=&LOC_BACKTEST_LOGS\Test_&TEST_RUN_NO\&&test&x...log
/remote=connx&x;
rsubmit connx&x wait=no ;
proc printto log="&LOG_LOC"; run;
options mprint source source2;
%inc "&LOC_BACKTEST_SCRIPTS\&test_pgm..sas";
endrsubmit;
%let waitforlist=&waitforlist connx&x;
%end;
waitfor _all_ &waitforlist;
%do x=1 %to %to %get_attrn(backtest_scripts,NLOBS);
signoff connx&x;
%end;
我的问题 -我现在如何通过 sassrv 帐户作为元数据用户连接? 我知道我可以使用这些-metauser XXX -metapass XXX
选项,但如果可能的话,我宁愿不要在我的脚本中嵌入密码..
我知道(现在)我们无法将 sassrv 帐户设置为元数据用户,因为它已经在使用中(SAS General Servers 组)。我还需要流输出,所以不能使用工作区服务器。我尝试在我的rsubmit
声明中使用 AUTHDOMAIN 但不断得到:
错误:从 SAS 元数据服务器检索基于 AuthenticationDomain 的登录信息失败。