<?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 Proc Report Total Line in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-Total-Line/m-p/372165#M65162</link>
    <description>&lt;P&gt;I am attempting to name a total line. &amp;nbsp;In a simplified example I am able to name the total line.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data example;&lt;BR /&gt;input a $ b $ mydate mmddyy8.;&lt;BR /&gt;datalines;&lt;BR /&gt;wilma stone 01122001&lt;BR /&gt;wilma stone 02122001&lt;BR /&gt;wilma stone 01012001&lt;BR /&gt;fred stone 03052008&lt;BR /&gt;fred stone 03152008&lt;BR /&gt;fred stone 03152009&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;title 'MIN and MAX date per patient';&lt;/P&gt;&lt;P&gt;proc report nowd data=example;&lt;BR /&gt;column a b, mydate;&lt;BR /&gt;compute mydate;&lt;BR /&gt;if a='wilma' then call define(_col_, 'format','dollar10.');&lt;BR /&gt;endcomp;&lt;BR /&gt;define a / group;&lt;BR /&gt;define b / across;&lt;BR /&gt;rbreak after / summarize dol dul;&lt;BR /&gt;compute after;&lt;BR /&gt;a='total line';&lt;BR /&gt;endcomp;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there something I am doing differently in the block below that causes the total line to not be named?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;title 'Teaching and Research Faculty Profile (Fall)';&lt;BR /&gt;proc report data= myemployee out= T_R_Integer;&lt;BR /&gt;column tenure2 academic_period_desc , displayNum;&lt;BR /&gt;define displayNum / analysis '';&lt;BR /&gt;define academic_period_desc / across '';&lt;BR /&gt;define tenure2 / group '' order = internal left;&lt;BR /&gt;rbreak after / summarize dol dul;&lt;BR /&gt;compute after;&lt;BR /&gt;tenure2='4';&lt;BR /&gt;endcomp;&lt;BR /&gt;where employee_category = 'T &amp;amp; R Faculty';&lt;BR /&gt;run;&lt;/P&gt;</description>
    <pubDate>Fri, 30 Jun 2017 13:59:15 GMT</pubDate>
    <dc:creator>DavidPhillips2</dc:creator>
    <dc:date>2017-06-30T13:59:15Z</dc:date>
    <item>
      <title>Proc Report Total Line</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-Total-Line/m-p/372165#M65162</link>
      <description>&lt;P&gt;I am attempting to name a total line. &amp;nbsp;In a simplified example I am able to name the total line.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data example;&lt;BR /&gt;input a $ b $ mydate mmddyy8.;&lt;BR /&gt;datalines;&lt;BR /&gt;wilma stone 01122001&lt;BR /&gt;wilma stone 02122001&lt;BR /&gt;wilma stone 01012001&lt;BR /&gt;fred stone 03052008&lt;BR /&gt;fred stone 03152008&lt;BR /&gt;fred stone 03152009&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;title 'MIN and MAX date per patient';&lt;/P&gt;&lt;P&gt;proc report nowd data=example;&lt;BR /&gt;column a b, mydate;&lt;BR /&gt;compute mydate;&lt;BR /&gt;if a='wilma' then call define(_col_, 'format','dollar10.');&lt;BR /&gt;endcomp;&lt;BR /&gt;define a / group;&lt;BR /&gt;define b / across;&lt;BR /&gt;rbreak after / summarize dol dul;&lt;BR /&gt;compute after;&lt;BR /&gt;a='total line';&lt;BR /&gt;endcomp;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there something I am doing differently in the block below that causes the total line to not be named?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;title 'Teaching and Research Faculty Profile (Fall)';&lt;BR /&gt;proc report data= myemployee out= T_R_Integer;&lt;BR /&gt;column tenure2 academic_period_desc , displayNum;&lt;BR /&gt;define displayNum / analysis '';&lt;BR /&gt;define academic_period_desc / across '';&lt;BR /&gt;define tenure2 / group '' order = internal left;&lt;BR /&gt;rbreak after / summarize dol dul;&lt;BR /&gt;compute after;&lt;BR /&gt;tenure2='4';&lt;BR /&gt;endcomp;&lt;BR /&gt;where employee_category = 'T &amp;amp; R Faculty';&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2017 13:59:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-Total-Line/m-p/372165#M65162</guid>
      <dc:creator>DavidPhillips2</dc:creator>
      <dc:date>2017-06-30T13:59:15Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report Total Line</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-Total-Line/m-p/372169#M65163</link>
      <description>&lt;P&gt;Apparently it has something to do with that tenure2 is a number. &amp;nbsp;Is this a bug?&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2017 14:05:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-Total-Line/m-p/372169#M65163</guid>
      <dc:creator>DavidPhillips2</dc:creator>
      <dc:date>2017-06-30T14:05:48Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report Total Line</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-Total-Line/m-p/372188#M65164</link>
      <description>&lt;P&gt;Is there a way to make the format statement take effect to the total line text. &amp;nbsp;It seems to be capped based on the pervious format.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data example;&lt;BR /&gt;input a $ b $ mydate mmddyy8.;&lt;BR /&gt;datalines;&lt;BR /&gt;wilma stone 01122001&lt;BR /&gt;wilma stone 02122001&lt;BR /&gt;wilma stone 01012001&lt;BR /&gt;fred stone 03052008&lt;BR /&gt;fred stone 03152008&lt;BR /&gt;fred stone 03152009&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;title 'MIN and MAX date per patient';&lt;/P&gt;&lt;P&gt;proc report nowd data=example;&lt;BR /&gt;column a b, mydate;&lt;BR /&gt;compute mydate;&lt;BR /&gt;if a='wilma' then call define(_col_, 'format','dollar10.');&lt;BR /&gt;endcomp;&lt;BR /&gt;define a / group format= $200.;&lt;BR /&gt;define b / across;&lt;BR /&gt;rbreak after / summarize dol dul;&lt;BR /&gt;compute after;&lt;BR /&gt;a='total line this is a huge amount of characters';&lt;BR /&gt;endcomp;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2017 14:30:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-Total-Line/m-p/372188#M65164</guid>
      <dc:creator>DavidPhillips2</dc:creator>
      <dc:date>2017-06-30T14:30:42Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report Total Line</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-Total-Line/m-p/372214#M65168</link>
      <description>&lt;P&gt;This worked.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data example;&lt;BR /&gt;input a $100. b $ mydate mmddyy8.;&lt;BR /&gt;datalines;&lt;BR /&gt;wilma stone 01122001&lt;BR /&gt;wilma stone 02122001&lt;BR /&gt;wilma stone 01012001&lt;BR /&gt;fred stone 03052008&lt;BR /&gt;fred stone 03152008&lt;BR /&gt;fred stone 03152009&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;title 'MIN and MAX date per patient';&lt;/P&gt;&lt;P&gt;proc report nowd data=example;&lt;BR /&gt;column a b, mydate;&lt;BR /&gt;/*compute mydate;&lt;BR /&gt;if a='wilma' then call define(_col_, 'format','dollar10.');&lt;BR /&gt;endcomp;*/&lt;BR /&gt;define a / group format= $200.;&lt;BR /&gt;define b / across;&lt;BR /&gt;rbreak after / summarize;&lt;BR /&gt;compute after;&lt;BR /&gt;a='total line this is a huge amount of characters';&lt;BR /&gt;endcomp;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately this didn't work for my larger program.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2017 15:18:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-Total-Line/m-p/372214#M65168</guid>
      <dc:creator>DavidPhillips2</dc:creator>
      <dc:date>2017-06-30T15:18:44Z</dc:date>
    </item>
  </channel>
</rss>

