When you added %macro GEN_BCListings(bcin=); and put a asterisk before *%let bcin='D:/CCIMP/skus-2015-06-08.csv'; the macrovariable bcin resolves to <empty>. the infilestatement then resolves to infile dlm = ',' MISSOVER DSD lrecl=32767 firstobs=2 ; it then probably fails on dlm because it tries to resolve dlm as a fieref that doesn't exist.or in syntax after the dlm fileref the '=' doesn't make any sense. the solution is to provide the value of bcin in the macrocall e.g. %GEN_BCListings(bcin=D:\CCIMP\skus-2015-06-08.csv); and the code should run fine.
... View more