I believe that you can fix this problem with the following steps: (1) use SERROR, *not* NOSERROR, as the latter only maskes problems you may have; besides, if everything works as it should, you will not get a message - the presence of a message just tells you that you are doing something wrong (2) instead of %let filenm = '/operations/FRAG/AQD&test.csv'; use %let filenm = %NRSTR(/operations/FRAG/AQD&test.csv); /* NRSTR "escapes" almost everything - see the manual for exceptions */ (3) instead of proc import datafile=&filenm out=initial_list
dbms=csv replace; use: proc import datafile=%NRBQUOTE(&filenm) /* %NRBQUOTE escapes the expansion of &filenm here */
out=initial_list dbms=csv replace;
... View more