SAS中文论坛

标题: 如何编写MACRO将规范名称文本导入 [打印本页]

作者: shiyiming    时间: 2010-6-22 11:36
标题: 如何编写MACRO将规范名称文本导入
Data sets ‘data1.txt’ through ‘data5.txt’ contain variables x and y.  Use a macro do loop to infile all five data sets into SAS。求各位高手写个代码,急
作者: shiyiming    时间: 2010-6-22 15:23
标题: Re: 如何编写MACRO将规范名称文本导入
filename f2load ('text1.txt','text2.txt','text3.txt');
data _null_;
    infile f2load;
    input x y;
run;

Alternatively, the infile option filevar= can be used with a do loop. It is not necessary to use MACRO in your case.




欢迎光临 SAS中文论坛 (https://mysas.net/forum/) Powered by Discuz! X3.2