<?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 report Conditional body of text in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-report-Conditional-body-of-text/m-p/935919#M367922</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods pdf file="test.pdf" bookmarklist=none ;
proc report data=check;
    columns name age;
    define name / "Name";
    define age / "Age";
run;

proc sql noprint;
    select max(age) into :maxage from check;
quit;
%if &amp;amp;maxage&amp;gt;19 %then %do; 
    ods escapechar='^';
    ods text ="^{style [just=c]}Age is greater than 19" ;
%end;
ods pdf close;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 16 Jul 2024 13:08:11 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2024-07-16T13:08:11Z</dc:date>
    <item>
      <title>Proc report Conditional body of text</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-report-Conditional-body-of-text/m-p/935905#M367917</link>
      <description>&lt;P&gt;data check;&lt;BR /&gt;input name $ age;&lt;BR /&gt;cards;&lt;BR /&gt;abc 10&lt;BR /&gt;def 11&lt;BR /&gt;ghj 23&lt;BR /&gt;kld 45&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;ods pdf file="test.pdf" bookmarklist=none ;&lt;BR /&gt;proc report data=check;&lt;BR /&gt;columns name age;&lt;BR /&gt;define name / "Name";&lt;BR /&gt;define age / "Age";&lt;/P&gt;
&lt;P&gt;/*if age is greater than 19 */&lt;/P&gt;
&lt;P&gt;/*then i want body of text says Age is greater than 19 you can enter */&lt;/P&gt;
&lt;P&gt;run;&lt;BR /&gt;ods pdf close;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2024 11:55:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-report-Conditional-body-of-text/m-p/935905#M367917</guid>
      <dc:creator>mmkr</dc:creator>
      <dc:date>2024-07-16T11:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: Proc report Conditional body of text</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-report-Conditional-body-of-text/m-p/935911#M367920</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
    value agef 19-high='Age is greater than 19';
run;

ods pdf file="test.pdf" bookmarklist=none ;
proc report data=check;
columns name age;
define name / "Name";
define age / "Age" format=agef.;
run;
ods pdf close;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 16 Jul 2024 12:12:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-report-Conditional-body-of-text/m-p/935911#M367920</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2024-07-16T12:12:39Z</dc:date>
    </item>
    <item>
      <title>Re: Proc report Conditional body of text</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-report-Conditional-body-of-text/m-p/935913#M367921</link>
      <description>&lt;P&gt;I don't want in to the table&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want text in the body of the report like below !!&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="mmkr_0-1721132627035.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/98433i07538A21BA76B02A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mmkr_0-1721132627035.png" alt="mmkr_0-1721132627035.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2024 12:24:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-report-Conditional-body-of-text/m-p/935913#M367921</guid>
      <dc:creator>mmkr</dc:creator>
      <dc:date>2024-07-16T12:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: Proc report Conditional body of text</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-report-Conditional-body-of-text/m-p/935919#M367922</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods pdf file="test.pdf" bookmarklist=none ;
proc report data=check;
    columns name age;
    define name / "Name";
    define age / "Age";
run;

proc sql noprint;
    select max(age) into :maxage from check;
quit;
%if &amp;amp;maxage&amp;gt;19 %then %do; 
    ods escapechar='^';
    ods text ="^{style [just=c]}Age is greater than 19" ;
%end;
ods pdf close;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 16 Jul 2024 13:08:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-report-Conditional-body-of-text/m-p/935919#M367922</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2024-07-16T13:08:11Z</dc:date>
    </item>
  </channel>
</rss>

