<?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 SGPLOT GIF output in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/SGPLOT-GIF-output/m-p/512367#M2326</link>
    <description>&lt;P&gt;x 'cd F:\SAS_Output';&lt;BR /&gt;/*--This program requires SAS 9.4--*/&lt;BR /&gt;%macro animate(start=, end=, incr=);&lt;BR /&gt;&amp;nbsp; %do year=&amp;amp;start %to &amp;amp;end %by &amp;amp;incr;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; proc sgplot data=DM_ noautolegend;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; footnote j=l 'Created using the SGPLOT Procedure';&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where yearnum=&amp;amp;year;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bubble x=ethnic y=AGE size=race / group=country&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; datalabel=SEX datalabelattrs=(size=12 weight=bold) dataskin=gloss&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bradiusmin=2 bradiusmax=50;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;inset "&amp;amp;year" / position=bottomright textattrs=(size=60 weight=bold color=lightgray);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xaxis type=log offsetmin=0.05 offsetmax=0.08 logstyle=linear grid min=100 max=60000;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; yaxis offsetmin=0.05 offsetmax=0.05 grid min=30 max=90;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; run;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; %end;&lt;BR /&gt;%mend animate;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;data DM_;&lt;BR /&gt;&amp;nbsp; set dscproj.dm;&lt;BR /&gt;&amp;nbsp; where age ne .;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;yearnum=input(substr(brthdtc,1,4),4.);&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;/*--Create animation--*/&lt;BR /&gt;options papersize=('5 in', '3 in') printerpath=gif animation=start animduration=0.1 animloop=yes noanimoverlay;&lt;BR /&gt;ods printer file='DM.gif';&lt;BR /&gt;&lt;BR /&gt;ods graphics / width=5in height=3in imagefmt=GIF;&lt;BR /&gt;%animate(start=1950, end=1984, incr=2);&lt;BR /&gt;%animate(start=1984, end=1950, incr=-2);&lt;BR /&gt;&lt;BR /&gt;options printerpath=gif animation=stop;&lt;BR /&gt;ods printer close;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to output the gif to a certain folder and I get the following warning:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="sasWarning"&gt;WARNING: RTF destination does not support GIF images. Using the&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;default static format.&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;WARNING: SIZE=RACE is invalid. The column has the wrong data&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;type.&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;WARNING: SIZE=RACE is invalid. The column has the wrong data&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;type.&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;WARNING: SIZE=RACE is invalid. The column has the wrong data&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;type.&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;WARNING: SIZE=RACE is invalid. The column has the wrong data&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;type.&lt;/DIV&gt;&lt;PRE class="sasLog"&gt;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 12 Nov 2018 21:22:42 GMT</pubDate>
    <dc:creator>chrissowden</dc:creator>
    <dc:date>2018-11-12T21:22:42Z</dc:date>
    <item>
      <title>SGPLOT GIF output</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SGPLOT-GIF-output/m-p/512367#M2326</link>
      <description>&lt;P&gt;x 'cd F:\SAS_Output';&lt;BR /&gt;/*--This program requires SAS 9.4--*/&lt;BR /&gt;%macro animate(start=, end=, incr=);&lt;BR /&gt;&amp;nbsp; %do year=&amp;amp;start %to &amp;amp;end %by &amp;amp;incr;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; proc sgplot data=DM_ noautolegend;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; footnote j=l 'Created using the SGPLOT Procedure';&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where yearnum=&amp;amp;year;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bubble x=ethnic y=AGE size=race / group=country&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; datalabel=SEX datalabelattrs=(size=12 weight=bold) dataskin=gloss&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bradiusmin=2 bradiusmax=50;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;inset "&amp;amp;year" / position=bottomright textattrs=(size=60 weight=bold color=lightgray);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xaxis type=log offsetmin=0.05 offsetmax=0.08 logstyle=linear grid min=100 max=60000;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; yaxis offsetmin=0.05 offsetmax=0.05 grid min=30 max=90;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; run;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; %end;&lt;BR /&gt;%mend animate;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;data DM_;&lt;BR /&gt;&amp;nbsp; set dscproj.dm;&lt;BR /&gt;&amp;nbsp; where age ne .;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;yearnum=input(substr(brthdtc,1,4),4.);&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;/*--Create animation--*/&lt;BR /&gt;options papersize=('5 in', '3 in') printerpath=gif animation=start animduration=0.1 animloop=yes noanimoverlay;&lt;BR /&gt;ods printer file='DM.gif';&lt;BR /&gt;&lt;BR /&gt;ods graphics / width=5in height=3in imagefmt=GIF;&lt;BR /&gt;%animate(start=1950, end=1984, incr=2);&lt;BR /&gt;%animate(start=1984, end=1950, incr=-2);&lt;BR /&gt;&lt;BR /&gt;options printerpath=gif animation=stop;&lt;BR /&gt;ods printer close;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to output the gif to a certain folder and I get the following warning:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="sasWarning"&gt;WARNING: RTF destination does not support GIF images. Using the&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;default static format.&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;WARNING: SIZE=RACE is invalid. The column has the wrong data&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;type.&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;WARNING: SIZE=RACE is invalid. The column has the wrong data&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;type.&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;WARNING: SIZE=RACE is invalid. The column has the wrong data&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;type.&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;WARNING: SIZE=RACE is invalid. The column has the wrong data&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;type.&lt;/DIV&gt;&lt;PRE class="sasLog"&gt;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Nov 2018 21:22:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SGPLOT-GIF-output/m-p/512367#M2326</guid>
      <dc:creator>chrissowden</dc:creator>
      <dc:date>2018-11-12T21:22:42Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT GIF output</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SGPLOT-GIF-output/m-p/512396#M2331</link>
      <description>&lt;P&gt;Sounds like race may be a categorical/character variable whereas SIZE needs to be a numeric variable. And GIF is not supported for RTF. If you check the docs you can see what output format types are available:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/?docsetId=grstatproc&amp;amp;docsetTarget=p0kroq43yu0lspn16hk1u4c65lti.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en#n1shby7ueyoypkn1kyrvv9x42ixa" target="_blank"&gt;https://documentation.sas.com/?docsetId=grstatproc&amp;amp;docsetTarget=p0kroq43yu0lspn16hk1u4c65lti.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en#n1shby7ueyoypkn1kyrvv9x42ixa&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Nov 2018 22:18:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SGPLOT-GIF-output/m-p/512396#M2331</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-11-12T22:18:30Z</dc:date>
    </item>
  </channel>
</rss>

