Hey SAS-Community,
i'm working on a programm which has to import periodical several csv-datas. My current solution looks like this:
%macro imp(infile);
PROC IMPORT datafile = "C:\Users\..."
OUT=work.&infile
DBMS=csv REPLACE;
DELIMITER = ';';
GETNAMES=YES;
datarow=2;
run;
Data work.&infile ;
set work.&infile ;
Reporting_month = Put(Today(),YYMMN6.);
run;
%mend imp;
%imp(System1_201909)
%imp(System2_201909)
So far, it works quite good. Now i'd like to change the "201909" of the macrovariables automatically to the acctual year and date. All my attemps were not successful, so far.
Thanks for your help!
Lars