You can use the infile statement to specify wildcards within the filename statement.
I.e.
Data Out ;
Infile "c:\users\amit\test*.csv" ;
Input A : $4. B C D ;
Run ;
This would read in test1.csv test2.csv etc
Using a SAS Macro:
%MACRO Depend ;
%If %SYSFUNC(WEEKDAY(%SYSFUNC(TODAY()))) = 1 %then
%do;
<CODE HERE>
%END ;
%MEND Depend ;
You could also use a call execute:
Data _NULL_ ;
IF WEEKDAY(TODAY())=1 THEN
CALL EXECUTE ("<Code within quotes here>") ;
RUN;
Proc Sort Data=NEW ;
By TiliA ;
Run;
Data New ;
Retain TiliB ;
Set Old ;
By TiliA ;
If First.TiliA Then
DO;
TiliB = "" ;
TiliB = TiliB!!" "!!TiliA ;
END;
IF Last.TiliA Then Output ;
RUN;
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.