sas - 吐出打开的程序中使用的数据源和库
问题描述
有没有办法提取 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;
解决方案
推荐阅读
- javascript - 模态不会与多个模态一起打开
- javascript - 需要替代 getElementByID 来通过 select onchange 事件更新文本框
- sql - 如何避免重新运行多次使用的子查询?
- types - 如何对 Raku 函数的数组参数的条目进行类型约束?
- sql - BigQuery SQL GROUP BY 不按日期分组
- javascript - 使用 vue.js v-show 隐藏 hubspot 表单
- django - CommandError:添加附加设置 COUNTRIES_OVERRIDE 后,无法找到存储文件 manage.py 翻译的语言环境路径
- python - RuntimeError:线程 'Thread-19' 中没有当前事件循环
- python - 即使安装后我也无法导入 csv
- spring - 如何使用远程服务器主机配置轴突服务器客户端?(没有本地主机)