<?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: PROC DOCUMENT replay not capturing result from conditional PROC TEMPLATE block. Bug? in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-DOCUMENT-replay-not-capturing-result-from-conditional-PROC/m-p/228326#M14444</link>
    <description>Hi:&lt;BR /&gt;  This is probably a question for Tech Support, as they will need to look at your code in order to figure out what is happening. If you don't want to show them your data (or can't), then mock up a test program using one of the SASHELP datasets or make some fake data that shows the issue.&lt;BR /&gt;&lt;BR /&gt;cynthia</description>
    <pubDate>Sat, 03 Oct 2015 16:40:07 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2015-10-03T16:40:07Z</dc:date>
    <item>
      <title>PROC DOCUMENT replay not capturing result from conditional PROC TEMPLATE block. Bug?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-DOCUMENT-replay-not-capturing-result-from-conditional-PROC/m-p/227538#M14423</link>
      <description>&lt;P&gt;Using 9.04 TS1M2 &amp;amp; EG 5.1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using PROC SGRENDER to&amp;nbsp;render a&amp;nbsp;graph. When the output goes to the PDF writer directly,&amp;nbsp;a conditional block in the PROC TEMPLATE&amp;nbsp;executes and&amp;nbsp;the result&amp;nbsp;displayed as expected&amp;nbsp;(in my case, if the condition passes, it adds a HIGHLOWPLOT to a statgraph). But when I&amp;nbsp;put my PROC SGRENDER&amp;nbsp;in&amp;nbsp;an ODS DOCUMENT sandwich, and then replay, I am surprised to see everything as expected except no HIGHLOWPLOT.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I comment out the conditional statement and closing ENDIF, the HIGHLOWPLOW appears as expected when REPLAYed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your time in helping me resolve this issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's what I have, more or less. The HIGHLOW will appear in the default ODS output, but not the REPLAY output:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc template;
    define statgraph drama;
	dynamic CI_Y_or_N;
                /*Code omitted for brevity*/
                if(upcase(CI_Y_or_N) eq 'Y'				
	     /*HIGHLOWPLOT code here */			endif;
    /*More code omitted here*/
end;
run;

ods document name=work.yesCIdoc(write);

proc sgrender data=llama template=drama;
    dynamic CI_y_or_N = "Y";
run;

ods document close;

proc document name=work.yesCIdoc;
	replay;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2015 17:32:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-DOCUMENT-replay-not-capturing-result-from-conditional-PROC/m-p/227538#M14423</guid>
      <dc:creator>anonymous_user</dc:creator>
      <dc:date>2015-09-28T17:32:18Z</dc:date>
    </item>
    <item>
      <title>Re: PROC DOCUMENT replay not capturing result from conditional PROC TEMPLATE block. Bug?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-DOCUMENT-replay-not-capturing-result-from-conditional-PROC/m-p/228326#M14444</link>
      <description>Hi:&lt;BR /&gt;  This is probably a question for Tech Support, as they will need to look at your code in order to figure out what is happening. If you don't want to show them your data (or can't), then mock up a test program using one of the SASHELP datasets or make some fake data that shows the issue.&lt;BR /&gt;&lt;BR /&gt;cynthia</description>
      <pubDate>Sat, 03 Oct 2015 16:40:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-DOCUMENT-replay-not-capturing-result-from-conditional-PROC/m-p/228326#M14444</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2015-10-03T16:40:07Z</dc:date>
    </item>
  </channel>
</rss>

