Alternatively it could be done in a single data step without using a macro, something like this : data _null_; FILE "C:\Users\KMarino\Dropbox\Dissertation\Data Generation\For Dissertation\SAS Control Files\flexMIRTsim.BATRUN.csv"; DO ss='300', '1000', '5000'; DO cl='10', '60', '100', '150'; DO it='10', '20', '50', '70'; DO BV='0.053', '0.11', '0.25', '0.43', '1.00'; DO it='10', '20', '50', '70'; Do rep=1 to 250; string= compress('C:\Users\KMarino\' !! ss !! '_' !! cl !! '_' !! bv !! '_' !! it !! '_' !! put(rep, 3.) !! '.flexMIRT', ' '); PUT @1 string; end; end; end; end; end; end; run;
... View more