<?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: Mutiple proc prints with title statement within macro-want to see titles only above first table in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Mutiple-proc-prints-with-title-statement-within-macro-want-to/m-p/452409#M114183</link>
    <description>&lt;P&gt;Check next skilton:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%let title_flag = 1;&amp;nbsp; /* initiate title flag to be printed */&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%macro ....;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; %if &amp;amp;title_flag = 1 %then %do;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;%let title_flag =0;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;title ..... ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; %end; %else %str(title;);&amp;nbsp; &amp;nbsp; /* clear titles */&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; ......&amp;nbsp; &amp;nbsp; your macro program ......&lt;/P&gt;
&lt;P&gt;%mend;&lt;/P&gt;</description>
    <pubDate>Mon, 09 Apr 2018 05:36:54 GMT</pubDate>
    <dc:creator>Shmuel</dc:creator>
    <dc:date>2018-04-09T05:36:54Z</dc:date>
    <item>
      <title>Mutiple proc prints with title statement within macro-want to see titles only above first table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Mutiple-proc-prints-with-title-statement-within-macro-want-to/m-p/452401#M114178</link>
      <description>i have a macro that i run .&lt;BR /&gt;The macro creates multiple tables with different names and print them.&lt;BR /&gt;Before proc print statement i have titles ststements&lt;BR /&gt;The problem is that for each tqble that printed out there are titles.&lt;BR /&gt;I want that the titles will appear only appove first printed table.&lt;BR /&gt;Any solution to this request?&lt;BR /&gt;</description>
      <pubDate>Mon, 09 Apr 2018 04:30:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Mutiple-proc-prints-with-title-statement-within-macro-want-to/m-p/452401#M114178</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2018-04-09T04:30:45Z</dc:date>
    </item>
    <item>
      <title>Re: Mutiple proc prints with title statement within macro-want to see titles only above first table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Mutiple-proc-prints-with-title-statement-within-macro-want-to/m-p/452402#M114179</link>
      <description>Hello&lt;BR /&gt;&lt;BR /&gt;i have a macro that i run .&lt;BR /&gt;The macro creates multiple tables with different names and print them.&lt;BR /&gt;Before proc print statement i have titles ststement.&lt;BR /&gt;The problem is that for each table that printed out there are titles.&lt;BR /&gt;I want that the titles will appear only above first printed table.&lt;BR /&gt;Any solution to this request?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 09 Apr 2018 04:32:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Mutiple-proc-prints-with-title-statement-within-macro-want-to/m-p/452402#M114179</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2018-04-09T04:32:00Z</dc:date>
    </item>
    <item>
      <title>Re: Mutiple proc prints with title statement within macro-want to see titles only above first table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Mutiple-proc-prints-with-title-statement-within-macro-want-to/m-p/452409#M114183</link>
      <description>&lt;P&gt;Check next skilton:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%let title_flag = 1;&amp;nbsp; /* initiate title flag to be printed */&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%macro ....;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; %if &amp;amp;title_flag = 1 %then %do;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;%let title_flag =0;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;title ..... ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; %end; %else %str(title;);&amp;nbsp; &amp;nbsp; /* clear titles */&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; ......&amp;nbsp; &amp;nbsp; your macro program ......&lt;/P&gt;
&lt;P&gt;%mend;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Apr 2018 05:36:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Mutiple-proc-prints-with-title-statement-within-macro-want-to/m-p/452409#M114183</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2018-04-09T05:36:54Z</dc:date>
    </item>
    <item>
      <title>Re: Mutiple proc prints with title statement within macro-want to see titles only above first table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Mutiple-proc-prints-with-title-statement-within-macro-want-to/m-p/452460#M114191</link>
      <description>&lt;P&gt;As &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/88384"&gt;@Shmuel&lt;/a&gt;&amp;nbsp;suggested, use a blank title statement to lear the titles. But I would suggest making the code a bit simpler:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro whatever;
  Title '&amp;lt;your inititial title here&amp;gt;';
  %do &amp;lt;assuming you have your print statements in a loop&amp;gt;;
    &amp;lt;proc print statements here&amp;gt;;
    Title;
    %end;
%mend;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;In other words, just clear the titles at the end of every iteration; an empty TITLE statement is not very expensive.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Apr 2018 10:34:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Mutiple-proc-prints-with-title-statement-within-macro-want-to/m-p/452460#M114191</guid>
      <dc:creator>s_lassen</dc:creator>
      <dc:date>2018-04-09T10:34:19Z</dc:date>
    </item>
  </channel>
</rss>

