This is my code. Thanks for all of your help! PROC IMPORT OUT=seven DATAFILE="C:/Users/lindsey/Documents/try7.csv" DBMS=CSV REPLACE;
GETNAMES=YES;
DATAROW=2;
guessingrows=all;
RUN;
proc IMPORT out=full_week DATAFILE="C:/Users/lindsey/Documents/full_week.csv" DBMS=CSV REPLACE;
GETNAMES=YES;
DATAROW=2;
guessingrows=all;
RUN;
%macro mapAnnually(dsn=, start=, end=);
%let start=%sysfunc(inputn(&start,date9.));
%let end=%sysfunc(inputn(&end,date9.));
%let dif=%sysfunc(intck(day,&start,&end));
%do i=0 %to &dif;
%let date=%sysfunc(intnx(day,&start,&i,b));
proc sgmap
plotdata=&dsn noautolegend;
openstreetmap;
title 'flu outbreaks' x=Longitude y=Latitude/ markerattrs=(size=7 color=CX003399
symbol=circlefilled) transparency=0.32;
run;
%end;
%mend mapAnnually;
ods html close;
/*--Create animation--*/
options papersize=('11 in', '7 in')
printerpath=gif
animation=start
animduration=0.7
animloop=yes
noanimoverlay
nodate;
ods printer file='C:/Users/lindsey/Documents/Gifs/NEW.gif';
ods graphics / width=10in height=6in imagefmt=GIF;
%mapAnnually(dsn=seven, start=01Jan2019, end = 07Jan2019);
options printerpath=gif animation=stop;
ods printer close;
ods html;
... View more