Hi all I am trying to use a do loop to upload multiple data files that vary by a trailing integer (e.g. dataset1.dat, dataset2.dat, etc) I tried using a macro, but have had issues. From the way the editor does not bold the data procedure it seems like it is not recognizing it as a command within the marco. Anyone have suggestions? filename SIPP1 "C:\...SIPP\l08puw1.dat"; filename SIPP2 "C:\...SIPP\l08puw2.dat"; filename SIPP3 "C:\...SIPP\l08puw3.dat"; filename SIPP4 "C:\...SIPP\l08puw4.dat"; %macro uploadSIPP; %local i; %do i=1 %to 4; data SIPPRAW&i; INFILE SIPP&i PAD LRECL=2341; INPUT SSUSEQ 1- 5 SSUID $ 6- 17 SPANEL 18- 21 ... FILLER 2338-2340; RUN; %end; %mend uploadSIPP; %uploadSIPP;
... View more