I think the path you mentioned in the infile statement there are two periods in the end before txt. INFILE '\\55.55.555.55\Controladoria$\PLANNING\PROJ_SAS\BASES\SR137942_&EX..txt' And even in ERROR: Physical file does not exist, \\10.39.114.71\Controladoria$\PLANNING\PROJ_SAS\BASES\SR137942_&EX..txt. sas can not read your macro variable it's reading it As &EX. the whole not assigning its value. So I think it's better to go with a manual approach rather than using macro variables for data name in both 'data' and 'infile' statements.
... View more