If there is no variable names in the text file, the firstobs=1 should be used.
- %macro InputMultiFiles(num);
- %do i=1 %to #
- data class;
- infile "F:\MySAS\Temp\class&i..txt" firstobs=2;
- input name $ ID Gender Edate : yymmdd10. Bdate : yymmdd10.;
- run;
- proc append base=ALL_Class data=class;
- run;
- %end;
- %mend InputMultiFiles;
- %InputMultiFiles(10);


雷达卡






京公网安备 11010802022788号







