<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Map Animation in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Map-Animation/m-p/574227#M18509</link>
    <description>&lt;P&gt;The ERROR is what you need to fix and I posted the answer in the other thread. You didn't provide a file name for the GIF, just a path. &lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;ERROR: Invalid file, C:\Users\lindsey\Documents\Gifs.&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 17 Jul 2019 15:34:52 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2019-07-17T15:34:52Z</dc:date>
    <item>
      <title>Map Animation</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Map-Animation/m-p/572353#M18461</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am new to SAS and am exploring the GIF animations that you can use on a map to show the spreading of something. I was using the code below from "Rob the Graph Guy" here on SAS and was getting the following errors/warnings:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="sasError"&gt;ERROR: 'PRINTERPATH' is not a valid unit or graphics option. It will&lt;/DIV&gt;&lt;DIV class="sasError"&gt;be ignored.&lt;/DIV&gt;&lt;DIV class="sasError"&gt;&lt;DIV class="sasError"&gt;ERROR: 'ANIMDURATION' is not a valid unit or graphics option. It will&lt;/DIV&gt;&lt;DIV class="sasError"&gt;be ignored.&lt;/DIV&gt;&lt;DIV class="sasError"&gt;&lt;DIV class="sasError"&gt;ERROR: 'ANIMATE' is not a valid unit or graphics option. It will&lt;/DIV&gt;&lt;DIV class="sasError"&gt;be ignored.&lt;/DIV&gt;&lt;DIV class="sasError"&gt;&lt;DIV class="sasError"&gt;ERROR: 'ANIMLOOP' is not a valid unit or graphics option. It will&lt;/DIV&gt;&lt;DIV class="sasError"&gt;be ignored.&lt;/DIV&gt;&lt;DIV class="sasError"&gt;&lt;DIV class="sasError"&gt;ERROR: 'ANIMOVERLAY' is not a valid unit or graphics option. It will&lt;/DIV&gt;&lt;DIV class="sasError"&gt;be ignored.&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="sasError"&gt;&lt;DIV class="sasWarning focus-line"&gt;WARNING: Invalid device 'SASPRCT' for RTF(WEB) destination.&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;Using default device 'EMF'.&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;WARNING: Invalid device 'SASPRCT' for PDF(WEB) destination.&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;Using default device 'SASPRTC'.&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;&lt;DIV class="sasWarning focus-line"&gt;WARNING: Invalid device 'SASPRCT' for HTML destination.&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;Using default device 'PNG'.&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;&lt;P&gt;ods _all_ close;&lt;BR /&gt;ods listing;&lt;/P&gt;&lt;P&gt;%let name=walmart_openings;&lt;BR /&gt;filename odsout '.';&lt;/P&gt;&lt;P&gt;%let litegray=graybb;&lt;/P&gt;&lt;P&gt;/*&lt;BR /&gt;Imitation &amp;amp; enhancement of:&lt;BR /&gt;&lt;A href="http://www.excelhero.com/blog/2010/04/excel-location-mapping.html" target="_blank" rel="noopener"&gt;http://www.excelhero.com/blog/2010/04/excel-location-mapping.html&lt;/A&gt;&lt;BR /&gt;Using data from:&lt;BR /&gt;&lt;A href="http://www.econ.umn.edu/~holmes/data/WalMart/index.html" target="_blank" rel="noopener"&gt;http://www.econ.umn.edu/~holmes/data/WalMart/index.html&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.econ.umn.edu/~holmes/data/WalMart/store_openings.csv" target="_blank" rel="noopener"&gt;http://www.econ.umn.edu/~holmes/data/WalMart/store_openings.csv&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Note: This example uses new SAS 9.4 syntax for the gif animation.&lt;BR /&gt;*/&lt;/P&gt;&lt;P&gt;PROC IMPORT OUT=my_data DATAFILE="C:/Users/lindsey.nelson/Documents/walmart_openings.csv" DBMS=CSV REPLACE;&lt;BR /&gt;GETNAMES=YES;&lt;BR /&gt;DATAROW=2;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;/*&lt;BR /&gt;Get the variable names &amp;amp; types the way Proc Geocode wants them&lt;BR /&gt;*/&lt;BR /&gt;data my_data; set my_data&lt;BR /&gt;(rename=(&lt;BR /&gt;streetaddr=address&lt;BR /&gt;strcity=city&lt;BR /&gt;strstate=state&lt;BR /&gt;));&lt;BR /&gt;zip=.; zip=zipcode;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;/*&lt;BR /&gt;Determine the approx lat/long of each store.&lt;BR /&gt;Proc Geocode could also do street-level geocoding, but when plotting data&lt;BR /&gt;at the US level street-level geocoding is overkill.&lt;BR /&gt;*/&lt;BR /&gt;proc geocode data=my_data out=my_data&lt;BR /&gt;lookup=sashelp.zipcode method=CITY;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;data city_matches; set my_data (where=(_matched_^='None'));&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;/*&lt;BR /&gt;If you couldn't get a city name match (probably because of differences&lt;BR /&gt;in the way city names are spelled in the csv data, and the lookup data,&lt;BR /&gt;do a zipcode lookup instead.&lt;BR /&gt;*/&lt;BR /&gt;proc geocode data=my_data (where=(_matched_='None')) out=zip_matches&lt;BR /&gt;lookup=sashelp.zipcode method=ZIP;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;data my_data; set city_matches zip_matches;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc sort data=my_data out=my_data;&lt;BR /&gt;by opendate;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;/* convert degrees to westlong radians, to be like the map */&lt;BR /&gt;data anno_dots (drop=state); set my_data;&lt;BR /&gt;anno_flag=1;&lt;BR /&gt;long=x;&lt;BR /&gt;lat=y;&lt;BR /&gt;statecode=state;&lt;BR /&gt;year=year(opendate);&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;/* Get the state abbreviations, and their lat/long locations */&lt;BR /&gt;data anno_states; set mapsgfk.uscenter (where=(statecode not in ('AK' 'HI' 'DC')));&lt;BR /&gt;anno_flag=2;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;/* Get the map */&lt;BR /&gt;data state_map;&lt;BR /&gt;set mapsgfk.us_states (where=(fipstate(state) not in ('AK' 'HI') and (density&amp;lt;3)));&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;/* combine, project, and separate */&lt;BR /&gt;data combined; set state_map anno_dots anno_states; run;&lt;BR /&gt;proc gproject data=combined out=combined latlong eastlong degrees dupok;&lt;BR /&gt;id statecode;&lt;BR /&gt;run;&lt;BR /&gt;data state_map anno_dots anno_states; set combined;&lt;BR /&gt;if anno_flag=1 then output anno_dots;&lt;BR /&gt;else if anno_flag=2 then output anno_states;&lt;BR /&gt;else output state_map;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;/* annotate red dot markers */&lt;BR /&gt;data anno_dots; set anno_dots;&lt;BR /&gt;length function $8 color $20 text $20;&lt;BR /&gt;xsys='2'; ysys='2'; hsys='3'; when='a';&lt;BR /&gt;function='pie'; rotate=360; size=0.7;&lt;BR /&gt;style='psolid'; color='Aff000077'; output; /* v9.3 alpha-transparent red */&lt;BR /&gt;style='pempty'; color='gray66'; line=1; output;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;/* Create an annotate dataset with the state abbreviations, to use to label&lt;BR /&gt;each of the states. The tricky part is that you want some labels to be&lt;BR /&gt;out over the ocean. */&lt;BR /&gt;/* this code modified from online help example */&lt;BR /&gt;data anno_states;&lt;BR /&gt;length function $8 color $20 style $20;&lt;BR /&gt;xsys='2'; ysys='2'; hsys='3'; when='a';&lt;BR /&gt;retain flag 0;&lt;BR /&gt;set anno_states;&lt;BR /&gt;function='label';&lt;BR /&gt;style='albany amt/bold';&lt;BR /&gt;text=fipstate(state);&lt;BR /&gt;size=2.25;&lt;BR /&gt;color='gray66';&lt;BR /&gt;position='5';&lt;BR /&gt;if ocean='Y' then&lt;BR /&gt;do;&lt;BR /&gt;position='6';&lt;BR /&gt;output;&lt;BR /&gt;function='move';&lt;BR /&gt;flag=1;&lt;BR /&gt;end;&lt;BR /&gt;else if flag=1 then&lt;BR /&gt;do;&lt;BR /&gt;function='draw';&lt;BR /&gt;size=.25;&lt;BR /&gt;flag=0;&lt;BR /&gt;end;&lt;BR /&gt;output;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;/* ------------------------------------------------------------------ */&lt;/P&gt;&lt;P&gt;%macro do_year(year);&lt;/P&gt;&lt;P&gt;data temp_dots; set anno_dots (where=(year&amp;lt;=&amp;amp;year));&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc sql noprint;&lt;BR /&gt;select count(*) format=comma10.0 into :year_cnt separated by ' ' from temp_dots where style='psolid' and year=&amp;amp;year;&lt;BR /&gt;select count(*) format=comma10.0 into :totalcnt separated by ' ' from temp_dots where style='psolid';&lt;BR /&gt;quit; run;&lt;/P&gt;&lt;P&gt;data data_anno;&lt;BR /&gt;length text $100;&lt;BR /&gt;xsys='3'; ysys='3'; hsys='3'; when='a';&lt;BR /&gt;function='label'; style='albany amt/bold'; color='gray44';&lt;BR /&gt;x=5; position='6';&lt;BR /&gt;text="Total Stores: &amp;amp;totalcnt"; y=22.5; size=3; output;&lt;BR /&gt;text="Store Openings: &amp;amp;year_cnt"; y=18.5; size=3; output;&lt;BR /&gt;text="&amp;amp;year"; y=12; size=15; output;&lt;BR /&gt;x=77; position='5';&lt;BR /&gt;text="Growth of"; y=95; size=7; output;&lt;BR /&gt;text="Walmart"; y=87; size=9; output;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;data all_anno;&lt;BR /&gt;set anno_states temp_dots data_anno;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;goptions gunit=pct ftitle="albany amt/bold" ftext="albany amt" htitle=5 htext=3.0;&lt;/P&gt;&lt;P&gt;pattern1 v=s c=cxf7e7bd;&lt;/P&gt;&lt;P&gt;proc gmap map=state_map data=state_map all;&lt;BR /&gt;id statecode;&lt;BR /&gt;choro state / levels=1 nolegend&lt;BR /&gt;coutline=gray66 anno=all_anno&lt;BR /&gt;des='' name="&amp;amp;name";&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;%mend;&lt;/P&gt;&lt;P&gt;/* ------------------------------------------------------------------ */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;goptions xpixels=1000 ypixels=650;&lt;BR /&gt;goptions border;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;goptions dev=sasprct printerpath=gif&lt;BR /&gt;animduration=.5 animloop=0&lt;BR /&gt;animoverlay=no animate=start;&lt;/P&gt;&lt;P&gt;ods listing close;&lt;BR /&gt;ods html path=odsout body="&amp;amp;name..htm"&lt;BR /&gt;(title="Walmart Openings in the US, over time")&lt;BR /&gt;style=htmlblue;&lt;BR /&gt;&lt;BR /&gt;%do_year(1968);&lt;BR /&gt;%do_year(1969);&lt;BR /&gt;%do_year(1970);&lt;BR /&gt;%do_year(1971);&lt;BR /&gt;%do_year(1972);&lt;BR /&gt;%do_year(1973);&lt;BR /&gt;%do_year(1974);&lt;BR /&gt;%do_year(1975);&lt;BR /&gt;%do_year(1976);&lt;BR /&gt;%do_year(1977);&lt;BR /&gt;%do_year(1978);&lt;BR /&gt;%do_year(1979);&lt;BR /&gt;%do_year(1980);&lt;BR /&gt;%do_year(1981);&lt;BR /&gt;%do_year(1982);&lt;BR /&gt;%do_year(1983);&lt;BR /&gt;%do_year(1984);&lt;BR /&gt;%do_year(1985);&lt;BR /&gt;%do_year(1986);&lt;BR /&gt;%do_year(1987);&lt;BR /&gt;%do_year(1988);&lt;BR /&gt;%do_year(1989);&lt;BR /&gt;%do_year(1990);&lt;BR /&gt;%do_year(1991);&lt;BR /&gt;%do_year(1992);&lt;BR /&gt;%do_year(1993);&lt;BR /&gt;%do_year(1994);&lt;BR /&gt;%do_year(1995);&lt;BR /&gt;%do_year(1996);&lt;BR /&gt;%do_year(1997);&lt;BR /&gt;%do_year(1998);&lt;BR /&gt;%do_year(1999);&lt;BR /&gt;%do_year(2000);&lt;BR /&gt;%do_year(2001);&lt;BR /&gt;%do_year(2002);&lt;BR /&gt;%do_year(2003);&lt;BR /&gt;%do_year(2004);&lt;BR /&gt;%do_year(2005);&lt;BR /&gt;%do_year(2006);&lt;BR /&gt;%do_year(2006);&lt;BR /&gt;%do_year(2006);&lt;BR /&gt;%do_year(2006);&lt;BR /&gt;%do_year(2006);&lt;BR /&gt;%do_year(2006);&lt;BR /&gt;%do_year(2006);&lt;BR /&gt;%do_year(2006);&lt;BR /&gt;%do_year(2006);&lt;BR /&gt;%do_year(2006);&lt;BR /&gt;%do_year(2006);&lt;BR /&gt;%do_year(2006);&lt;BR /&gt;%do_year(2006);&lt;/P&gt;&lt;P&gt;quit;&lt;BR /&gt;ods html close;&lt;BR /&gt;ods listing;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know where these errors would be occurring for me?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 10 Jul 2019 13:50:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Map-Animation/m-p/572353#M18461</guid>
      <dc:creator>lindseyn</dc:creator>
      <dc:date>2019-07-10T13:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: Map Animation</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Map-Animation/m-p/572399#M18464</link>
      <description>Yeah, you're likely not using SAS Base, you're likely using SAS Studio or EG which has different options. &lt;BR /&gt;&lt;BR /&gt;This is also a really old method, you should likely be using SGMAP these days instead which is cleaner. To make animated graphs, first start off with getting your base graphs created properly. Once you have that done it's quite easy to convert to an animated graphics. Do you have code that generates the map you want? &lt;BR /&gt;&lt;BR /&gt;I think there's an example of animated maps on the SAS graphics blog.</description>
      <pubDate>Wed, 10 Jul 2019 15:11:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Map-Animation/m-p/572399#M18464</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-07-10T15:11:30Z</dc:date>
    </item>
    <item>
      <title>Re: Map Animation</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Map-Animation/m-p/572762#M18472</link>
      <description>&lt;P&gt;If this is the code for my map:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods graphics / reset width=6.4in height=4.8in;

proc sgmap 
	plotdata=flu_DATA;
	openstreetmap;
	title 'Influenza Outbreaks Over Time';
	scatter x=LONGITUDE y=LATITUDE/ markerattrs=(size=6 symbol=circlefilled);
run;

ods graphics / reset;
title;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;and the graph produced looks like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2019-07-11 10_27_10-SAS Studio - Single User.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/30974i7E66EAD1198F2B59/image-size/large?v=v2&amp;amp;px=999" role="button" title="2019-07-11 10_27_10-SAS Studio - Single User.png" alt="2019-07-11 10_27_10-SAS Studio - Single User.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;How would animate this by having the points appear by the date they occurred? The code I used earlier for animation gives me an error.&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2019 14:29:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Map-Animation/m-p/572762#M18472</guid>
      <dc:creator>lindseyn</dc:creator>
      <dc:date>2019-07-11T14:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: Map Animation</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Map-Animation/m-p/572797#M18475</link>
      <description>Use this code example then, from my github repository. It's a line chart over time. Assuming your dates are SAS dates you should be able to replace my sgplot with yours and then specify the dates accordingly. You also need to modify your WHERE condition to use your variables as the filter.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://github.com/statgeek/SAS-Tutorials/blob/master/sgplot_line_graph_animation" target="_blank"&gt;https://github.com/statgeek/SAS-Tutorials/blob/master/sgplot_line_graph_animation&lt;/A&gt;</description>
      <pubDate>Thu, 11 Jul 2019 15:45:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Map-Animation/m-p/572797#M18475</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-07-11T15:45:21Z</dc:date>
    </item>
    <item>
      <title>Re: Map Animation</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Map-Animation/m-p/573070#M18476</link>
      <description>&lt;P&gt;When I used the exact same code/example from your GitHub it produces separate graphs for each date not animation. Why would this be?&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2019 12:49:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Map-Animation/m-p/573070#M18476</guid>
      <dc:creator>lindseyn</dc:creator>
      <dc:date>2019-07-12T12:49:04Z</dc:date>
    </item>
    <item>
      <title>Re: Map Animation</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Map-Animation/m-p/573123#M18477</link>
      <description>You should actually get both...what happens to create those graphics is similar to how a flip book is generated, those where you flip the page and it looks like the image is moving? That's essentially what's happening here, you just have a lot of pages and it's created automatically. So you should get both an image for every time period as well as a gif file that is the combined animated version of them.</description>
      <pubDate>Fri, 12 Jul 2019 14:57:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Map-Animation/m-p/573123#M18477</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-07-12T14:57:30Z</dc:date>
    </item>
    <item>
      <title>Re: Map Animation</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Map-Animation/m-p/573907#M18499</link>
      <description>&lt;P&gt;In your example, what does the line of code "ods printer file='/folders/myfolders/LineGraph.gif';" do? and when and where did you create it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2019 15:54:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Map-Animation/m-p/573907#M18499</guid>
      <dc:creator>lindseyn</dc:creator>
      <dc:date>2019-07-16T15:54:31Z</dc:date>
    </item>
    <item>
      <title>Re: Map Animation</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Map-Animation/m-p/573909#M18500</link>
      <description>It creates/combines the animations into a single document. It's created as part of the output of the program.</description>
      <pubDate>Tue, 16 Jul 2019 15:58:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Map-Animation/m-p/573909#M18500</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-07-16T15:58:53Z</dc:date>
    </item>
    <item>
      <title>Re: Map Animation</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Map-Animation/m-p/573925#M18502</link>
      <description>&lt;P&gt;For an overview of animation in PROC SGPLOT, see&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/iml/2016/08/22/animation-by-statement-proc-sgplot.html" target="_self"&gt;"Create an animation with the BY statement in PROC SGPLOT"&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2019 16:26:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Map-Animation/m-p/573925#M18502</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2019-07-16T16:26:23Z</dc:date>
    </item>
    <item>
      <title>Re: Map Animation</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Map-Animation/m-p/574205#M18504</link>
      <description>&lt;P&gt;When using this example, the individual images appear but not the gif animation. I am getting the warning&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt; WARNING: RTF destination does not support GIF images. Using the 
          default static format.&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 17 Jul 2019 15:16:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Map-Animation/m-p/574205#M18504</guid>
      <dc:creator>lindseyn</dc:creator>
      <dc:date>2019-07-17T15:16:50Z</dc:date>
    </item>
    <item>
      <title>Re: Map Animation</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Map-Animation/m-p/574208#M18505</link>
      <description>I don't believe any code references RTF, so if you do have word as one of your default destinations you can close it ahead of time. &lt;BR /&gt;&lt;BR /&gt;ODS RTF CLOSE;&lt;BR /&gt;&lt;BR /&gt;The GIF should still be created, just not in the Word doc, it will be in a file on it's own. Can you post your full code and log if it still isn't working. You've marked it solved so not sure if it is or isn't working anymore.</description>
      <pubDate>Wed, 17 Jul 2019 15:19:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Map-Animation/m-p/574208#M18505</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-07-17T15:19:52Z</dc:date>
    </item>
    <item>
      <title>Re: Map Animation</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Map-Animation/m-p/574225#M18508</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ODS RTF CLOSE;
ods listing close;

ods html;
data stocks;
   set sashelp.stocks;
   Month = month(date);      /* 1, 2, 3, ..., 12 */
   Year = year(date);        /* 1986, 1987, ..., 2005 */
run;
 
proc sort data=stocks; by date; run;

ods graphics / imagefmt=GIF outputfmt=gif width=4in height=3in;     /* each image is 4in x 3in GIF */
options papersize=('4 in', '3 in')                    /* set size for images */
        nodate nonumber                               /* do not show date, time, or frame number */
        animduration=0.5 animloop=yes noanimoverlay   /* animation details */
        printerpath=gif animation=start;              /* start recording images to GIF */
ods printer file='C:\Users\lindsey\Documents\Gifs';  /* images saved into animated GIF */
 
ods html select none;                                /* suppress screen output */
proc sgplot data=stocks;
title "Stock Performance";
   by year;                                           /* create 20 images, one for each year */
   series x=month y=close / group=stock;              /* each image is a time series */
   xaxis integer values=(1 to 12);                         
   yaxis min=10 max=210 grid;                         /* set common vertical scale for all graphs */
run;
ods html select all;                          /* restore screen output */
 
options printerpath=gif animation=stop;               /* stop recording images */
ods printer close;                                  /* close the animated GIF file */&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Log:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt; 
 1          OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 NOTE: ODS statements in the SAS Studio environment may disable 
 some output features.
 73         
 74         ODS RTF CLOSE;
 75         ods listing close;
 76         
 77         ods html;
 NOTE: Writing HTML Body file: sashtml19.htm
 78         data stocks;
 79            set sashelp.stocks;
 80            Month = month(date);      /* 1, 2, 3, ..., 12 */
 81            Year = year(date);        /* 1986, 1987, ..., 2005
 81       !  */
 82         run;
 
 NOTE: There were 699 observations read from the data set 
       SASHELP.STOCKS.
 NOTE: The data set WORK.STOCKS has 699 observations and 10 
       variables.
 NOTE: DATA statement used (Total process time):
       real time           0.01 seconds
       cpu time            0.00 seconds
       
 
 83         
 84         proc sort data=stocks; by date; run;
 
 NOTE: There were 699 observations read from the data set 
       WORK.STOCKS.
 NOTE: The data set WORK.STOCKS has 699 observations and 10 
       variables.
 NOTE: PROCEDURE SORT used (Total process time):
       real time           0.02 seconds
       cpu time            0.01 seconds
       
 
 85         
 86         ods graphics / imagefmt=GIF outputfmt=gif width=4in
 86       ! height=3in;     /* each image is 4in x 3in GIF */
 87         options papersize=('4 in', '3 in')
 87       !  /* set size for images */
 88                 nodate nonumber
 88       !  /* do not show date, time, or frame number */
 89                 animduration=0.5 animloop=yes noanimoverlay
 89       !  /* animation details */
 90                 printerpath=gif animation=start;
 90       !  /* start recording images to GIF */
 91         ods printer
 91       ! file='C:\Users\lindsey\Documents\Gifs';  /*
 91       ! images saved into animated GIF */
 NOTE: Writing ODS PRINTER output to DISK destination 
       "C:\Users\lindsey.nelson\Documents\Gifs", printer "gif".
 92         
 93         ods html select none;
 93       ! /* suppress screen output */
 94         proc sgplot data=stocks;
 95         title "Stock Performance";
 96            by year;
 96       !  /* create 20 images, one for each year */
 97            series x=month y=close / group=stock;
 97       !  /* each image is a time series */
 98            xaxis integer values=(1 to 12);
 99            yaxis min=10 max=210 grid;
 99       !  /* set common vertical scale for all graphs */
 100        run;
 
 NOTE: PROCEDURE SGPLOT used (Total process time):
       real time           7.05 seconds
       cpu time            3.12 seconds
       
 WARNING: RTF destination does not support GIF images. Using the 
          default static format.
 WARNING: RTF destination does not support GIF images. Using the 
          default static format.
 WARNING: RTF destination does not support GIF images. Using the 
          default static format.
 WARNING: RTF destination does not support GIF images. Using the 
          default static format.
 WARNING: RTF destination does not support GIF images. Using the 
          default static format.
 WARNING: RTF destination does not support GIF images. Using the 
          default static format.
 WARNING: RTF destination does not support GIF images. Using the 
          default static format.
 WARNING: RTF destination does not support GIF images. Using the 
          default static format.
 WARNING: RTF destination does not support GIF images. Using the 
          default static format.
 WARNING: RTF destination does not support GIF images. Using the 
          default static format.
 WARNING: RTF destination does not support GIF images. Using the 
          default static format.
 WARNING: RTF destination does not support GIF images. Using the 
          default static format.
 WARNING: RTF destination does not support GIF images. Using the 
          default static format.
 WARNING: RTF destination does not support GIF images. Using the 
          default static format.
 WARNING: RTF destination does not support GIF images. Using the 
          default static format.
 WARNING: RTF destination does not support GIF images. Using the 
          default static format.
 WARNING: RTF destination does not support GIF images. Using the 
          default static format.
 WARNING: RTF destination does not support GIF images. Using the 
          default static format.
 WARNING: RTF destination does not support GIF images. Using the 
          default static format.
 WARNING: RTF destination does not support GIF images. Using the 
          default static format.
 NOTE: There were 699 observations read from the data set 
       WORK.STOCKS.
 
 101        ods html select all;                          /*
 101      ! restore screen output */
 102        
 103        options printerpath=gif animation=stop;
 103      !  /* stop recording images */
 104        ods printer close;
 104      ! /* close the animated GIF file */
 ERROR: Invalid file, C:\Users\lindsey\Documents\Gifs.
 105        
 106        OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 118        &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;And I am sorry, I thought it was working but then the file would did not appear in my created folder.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2019 15:32:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Map-Animation/m-p/574225#M18508</guid>
      <dc:creator>lindseyn</dc:creator>
      <dc:date>2019-07-17T15:32:47Z</dc:date>
    </item>
    <item>
      <title>Re: Map Animation</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Map-Animation/m-p/574227#M18509</link>
      <description>&lt;P&gt;The ERROR is what you need to fix and I posted the answer in the other thread. You didn't provide a file name for the GIF, just a path. &lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;ERROR: Invalid file, C:\Users\lindsey\Documents\Gifs.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2019 15:34:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Map-Animation/m-p/574227#M18509</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-07-17T15:34:52Z</dc:date>
    </item>
  </channel>
</rss>

