jamesk1979
IS-IT--Management
Hi all,
I'm a bit a SAS novice so apologies if this sounds a bit dumb.
I get a backup of a system file each day, with the date tagged on to the end of the dataset name in the format YYMMDD.
At the moment I am changing my SAS programs each day to look at the latest version, e.g. today I changed it from 060108 to 060109.
Is there a way for me to always have the program look at the latest version of the file available? So the program runs against the dataset in today's YYMMDD format, if that doesn't exist it runs against YYMMDD(-1) etc.?
My code usually follows this format;
%let master = lib.file060108;
proc sql;
*get the variables
from &master
etc
Many thanks,
James.
I'm a bit a SAS novice so apologies if this sounds a bit dumb.
I get a backup of a system file each day, with the date tagged on to the end of the dataset name in the format YYMMDD.
At the moment I am changing my SAS programs each day to look at the latest version, e.g. today I changed it from 060108 to 060109.
Is there a way for me to always have the program look at the latest version of the file available? So the program runs against the dataset in today's YYMMDD format, if that doesn't exist it runs against YYMMDD(-1) etc.?
My code usually follows this format;
%let master = lib.file060108;
proc sql;
*get the variables
from &master
etc
Many thanks,
James.