是否可以将.sas文件的实际代码导入SAS,而无需将基本文件更改为.txt。我正在尝试制作一种工具,以在代码行中搜索某些关键字。
您可以使用infile
语句:
infile
test.sas:
filename sastext "\test.sas";
data sastext;
infile sastext truncover;
input str $32000.;
run;
filename sastext clear;
数据集sastext:
data _null_;
put "TEST";
run;