我有SAS代码从外部.txt
文件读取我的密码并与之建立连接odbc
.当我在SAS中运行以下代码时,它工作正常
filename pw "C:/xxxx"; data _NULL_ ; infile pw ; input pw : $50. ; call symputx('pwd',pwd); run; libname xxx odbc user=myUser password=&pwd. dsn=myDsn schema=mySchema; proc sql; connect to xxx(dsn=myDsn user=myUser password=&pwd.);
但是,当我创建批处理文件以从Windows任务计划程序运行它或从SAS Enterprise Guide运行它时,我得到了 Apparent symbolic reference PWD not resolved
为什么会这样?如何处理这个问题?