是否可以提取在SAS EG中打开的程序中使用的所有数据源和库?
我找到了以下可以处理的内容,但是很遗憾,由于sas的设置方式,我无法使用Filename,并且无法使用Filename FTP。这里有什么想法吗?
Filename inp "<path and name of the sas code/>";
data temp;
infile inp;
input rec $100.;
if index(lowcase(rec), "libname") ne 0 then output; /*check libraries */
else if index(lowcase(rec),"filename") ne 0 then output; /*check input files*/
else if index(lowcase(rec),"data") ne 0 and index(rec,".") ne 0 then output; /* to check the
permanent datasets */
else if index(lowcase(rec),"merge") ne 0 and index(rec,".") ne o then output; /*check permanent
datasets used in merge*/
run;