* 공백이 포함된 디렉토리명을 매크로에서 처리하기;
* 큰따옴표 2개로 처리;
option mprint mlogic;
%LET MYDIR0 = H:\SASDATA\02. BACK;
%LET MYDIR = &MYDIR0\RateMonth201805*.txt;
%PUT &MYDIR;
%macro DATA_READ(BAS_MON);
filename DIRLIST pipe "dir ""&MYDIR"" /b";
data dirlist ;
infile dirlist lrecl=200 truncover;
input file_name $100.;
run;
%mend;
%DATA_READ(201805);
( Blank / Space / directory path )
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!