You can use a RETAIN statement or a SAS assignment statement to create some SAS DATA step variable with your file name. Then on subsequent executions (not sure what you intend here), you can concatenate your permanent-named file from some LIBNAME location and add new observations as you process new input files. You will likely use the SAS EXIST function to test whether the permanent file you use for tracking already exists. Also, you can use a SAS assignment statement and a macro variable to create a new observation -- use an ATTRIB or LENGTH to establish a SAS CHARACTER variable, such as:
FileName = "&path\&whatever_macro_var_you_use";
Depending on the level of importance with this data, consider making a backup copy of the tracking file in case you have to do a restore/recovery. And you may want to add a SAS DATETIME variable (using an ATTRIB with an appropriate FORMAT) to go along with the FileName variable, such as:
LoadDate = "&SYSDATE9:&SYSTIME"DT;
Scott Barry
SBBWorks, Inc.