<?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: How to flash a plot periodically?! in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-flash-a-plot-periodically/m-p/824842#M325784</link>
    <description>&lt;P&gt;First of all, you need to replace GPLOT with SGPLOT. The newer SGPLOT is integrated with ODS, which GPLOT is not.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is a simple example creating a graph in the RTF destination:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods rtf file="~/graph.rtf";

proc sgplot data=sashelp.class;
vbar weight;
run;

ods rtf close;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 22 Jul 2022 09:00:43 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2022-07-22T09:00:43Z</dc:date>
    <item>
      <title>How to flash a plot periodically?!</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-flash-a-plot-periodically/m-p/823760#M325304</link>
      <description>&lt;P&gt;I try to flash a picture every 5 seconds. The pic info is from readin of a txt file.&lt;/P&gt;
&lt;P&gt;However the process does not allow picture output flashed until kill the process(all the pictures dumped-out).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How to flash the picture periodically?!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro loopit(dt);
%do i=1 %to 1000;
	%indexin(&amp;amp;dt.);// read in txt file&lt;BR /&gt;
	%let varx=...;
	title "var=&amp;amp;varx";
	proc gplot data=indata; // plot it
	plot (dlastprice )*ind/legend overlay;
	plot2 (&amp;amp;varx.)*ind/legend overlay;
	run;quit;
	title "";

	data _null_; // sleep 5 sec
	   call sleep(5,1);
	run;
%end;
%mend;
%let dt=0718;
%loopit(&amp;amp;dt.);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2022 02:19:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-flash-a-plot-periodically/m-p/823760#M325304</guid>
      <dc:creator>hellohere</dc:creator>
      <dc:date>2022-07-18T02:19:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to flash a plot periodically?!</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-flash-a-plot-periodically/m-p/823761#M325305</link>
      <description>&lt;P&gt;You need to make the ODS statements which open and close the destination(s) part of the loop.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2022 04:35:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-flash-a-plot-periodically/m-p/823761#M325305</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-07-18T04:35:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to flash a plot periodically?!</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-flash-a-plot-periodically/m-p/823764#M325306</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;&amp;nbsp;   ods trace on;&lt;BR /&gt;    title "var=&amp;amp;varx";
	proc gplot data=indata; // plot it
	plot (dlastprice )*ind/legend overlay;
	plot2 (&amp;amp;varx.)*ind/legend overlay;
	run;quit;
	title "";&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ods&amp;nbsp;trace&amp;nbsp;off;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I put "ods trace on/off" inside the loop, still the pic is not released/flashed until the process gets killed (all pics get dumped)&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2022 05:59:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-flash-a-plot-periodically/m-p/823764#M325306</guid>
      <dc:creator>hellohere</dc:creator>
      <dc:date>2022-07-18T05:59:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to flash a plot periodically?!</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-flash-a-plot-periodically/m-p/823771#M325311</link>
      <description>&lt;P&gt;That's just an auxiliary statement helping in revealing the names of output elements of procedures. You need to insert the statements that open and close the destination.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2022 07:35:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-flash-a-plot-periodically/m-p/823771#M325311</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-07-18T07:35:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to flash a plot periodically?!</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-flash-a-plot-periodically/m-p/823779#M325317</link>
      <description>&lt;P&gt;If you are trying this in SAS Enterprise Guide or SAS Studio, it is very unlikely that you will able to solve the problem at all, because those environments aren't made for displaying fancy reports.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2022 08:29:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-flash-a-plot-periodically/m-p/823779#M325317</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2022-07-18T08:29:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to flash a plot periodically?!</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-flash-a-plot-periodically/m-p/824806#M325768</link>
      <description>&lt;P&gt;I tried and still get lost on how. Could you give out an example, with ODS and Proc GPlot(or alike)?!&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2022 23:48:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-flash-a-plot-periodically/m-p/824806#M325768</guid>
      <dc:creator>hellohere</dc:creator>
      <dc:date>2022-07-21T23:48:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to flash a plot periodically?!</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-flash-a-plot-periodically/m-p/824842#M325784</link>
      <description>&lt;P&gt;First of all, you need to replace GPLOT with SGPLOT. The newer SGPLOT is integrated with ODS, which GPLOT is not.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is a simple example creating a graph in the RTF destination:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods rtf file="~/graph.rtf";

proc sgplot data=sashelp.class;
vbar weight;
run;

ods rtf close;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 22 Jul 2022 09:00:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-flash-a-plot-periodically/m-p/824842#M325784</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-07-22T09:00:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to flash a plot periodically?!</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-flash-a-plot-periodically/m-p/825179#M325926</link>
      <description>&lt;P&gt;The graph file is created. But the picture is not flash(all are dumped out until the process is killed).&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jul 2022 02:07:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-flash-a-plot-periodically/m-p/825179#M325926</guid>
      <dc:creator>hellohere</dc:creator>
      <dc:date>2022-07-25T02:07:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to flash a plot periodically?!</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-flash-a-plot-periodically/m-p/825181#M325927</link>
      <description>&lt;P&gt;As&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15475"&gt;@andreas_lds&lt;/a&gt;&amp;nbsp;has already indicated, I don't think this will work with SAS Enterprise Guide or SAS Studio When you submit a SAS program in these it runs the complete job before displaying results as you have found. Maybe you could create a complete set of graphs in SAS then export them to MS Powerpoint as one graph per slide then use Powerpoint's slideshow functionality.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jul 2022 04:06:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-flash-a-plot-periodically/m-p/825181#M325927</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2022-07-25T04:06:38Z</dc:date>
    </item>
  </channel>
</rss>

