<?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 ods gif in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/ods-gif/m-p/870344#M343768</link>
    <description>&lt;P&gt;The output window shows the sequence of my macro loop but my gif only contains one frame.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods graphics / imagefmt=GIF width=12cm height=10cm  ;    
options papersize=('8 in', '6 in')                    
        nodate nonumber   
    /* do not show date, time, or frame number */
        animduration=0.2 animloop=yes NOANIMOVERLAY NOBYLINE     /* animation details */
        printerpath=gif animation=start;              /* start recording images to GIF */
ods printer file='/caslibs/reportspr/Anim3.gif' NOGTITLE DPI=300;  /* images saved into animated GIF */
 

%macro create(_rot);

%do i=&amp;amp;_rot %to 135 %by 10;
proc g3d data=RISKNOBA.SCORED; 
where _RMCTMAIMG='6C122V' and byear=2021;
plot _o_actual_mileage*meses_efectivos=P_it_based_sales_res /grid ctop=red cbottom=blue caxis=black rotate=&amp;amp;i tilt=30 xticknum=8 yticknum=8  ; 
run; 
quit;

%end;

%mend create;

%create(45);

 
options printerpath=gif animation=stop;               /* stop recording images */
ods printer close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pic.png" style="width: 935px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/82797i5808335D37CDF6A0/image-size/large?v=v2&amp;amp;px=999" role="button" title="pic.png" alt="pic.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 18 Apr 2023 12:56:47 GMT</pubDate>
    <dc:creator>acordes</dc:creator>
    <dc:date>2023-04-18T12:56:47Z</dc:date>
    <item>
      <title>ods gif</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ods-gif/m-p/870344#M343768</link>
      <description>&lt;P&gt;The output window shows the sequence of my macro loop but my gif only contains one frame.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods graphics / imagefmt=GIF width=12cm height=10cm  ;    
options papersize=('8 in', '6 in')                    
        nodate nonumber   
    /* do not show date, time, or frame number */
        animduration=0.2 animloop=yes NOANIMOVERLAY NOBYLINE     /* animation details */
        printerpath=gif animation=start;              /* start recording images to GIF */
ods printer file='/caslibs/reportspr/Anim3.gif' NOGTITLE DPI=300;  /* images saved into animated GIF */
 

%macro create(_rot);

%do i=&amp;amp;_rot %to 135 %by 10;
proc g3d data=RISKNOBA.SCORED; 
where _RMCTMAIMG='6C122V' and byear=2021;
plot _o_actual_mileage*meses_efectivos=P_it_based_sales_res /grid ctop=red cbottom=blue caxis=black rotate=&amp;amp;i tilt=30 xticknum=8 yticknum=8  ; 
run; 
quit;

%end;

%mend create;

%create(45);

 
options printerpath=gif animation=stop;               /* stop recording images */
ods printer close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pic.png" style="width: 935px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/82797i5808335D37CDF6A0/image-size/large?v=v2&amp;amp;px=999" role="button" title="pic.png" alt="pic.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2023 12:56:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ods-gif/m-p/870344#M343768</guid>
      <dc:creator>acordes</dc:creator>
      <dc:date>2023-04-18T12:56:47Z</dc:date>
    </item>
    <item>
      <title>Re: ods gif</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ods-gif/m-p/870353#M343772</link>
      <description>&lt;P&gt;Everything ok.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I had to open it in a browser to see it animated. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2023 13:18:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ods-gif/m-p/870353#M343772</guid>
      <dc:creator>acordes</dc:creator>
      <dc:date>2023-04-18T13:18:21Z</dc:date>
    </item>
    <item>
      <title>Re: ods gif</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ods-gif/m-p/870374#M343778</link>
      <description>&lt;P&gt;Instead of running the proc multiple times you might try using a list of angles in the ROTATE option and see if you can skip the macro completely .&lt;/P&gt;
&lt;P&gt;The TILT also accepts a similar list or range of values.&lt;/P&gt;
&lt;PRE&gt;proc g3d data=RISKNOBA.SCORED; 
   where _RMCTMAIMG='6C122V' and byear=2021;
   plot _o_actual_mileage*meses_efectivos=P_it_based_sales_res /
            grid ctop=red cbottom=blue caxis=black 
            rotate=(45 to 135 by 10)
            tilt=30 xticknum=8 yticknum=8  ; 
run; 
quit;&lt;/PRE&gt;</description>
      <pubDate>Tue, 18 Apr 2023 14:43:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ods-gif/m-p/870374#M343778</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-04-18T14:43:26Z</dc:date>
    </item>
  </channel>
</rss>

