Add this to your infile statement .... FILENAME=whatever specifies a variable that SAS sets to the physical name of the currently opened input file. Like automatic variables, the FILENAME= variable is not written to the data set. Tip:Use a LENGTH statement to make the variable length long enough to contain the value of the filename. See:FILEVAR= Example:Reading from Multiple Input Files then module=whatever
... View more