<?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 how to rename while using proc print in result tab in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-rename-while-using-proc-print-in-result-tab/m-p/492853#M129606</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;how to rename deptno as "Total Sal of 10"&amp;nbsp; in result tab while using proc print.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data ndk;&lt;BR /&gt;input id name$ sal job $ deptno;&lt;BR /&gt;cards;&lt;BR /&gt;1 A 100 sales 10&lt;BR /&gt;3 C 300 hr 20&lt;BR /&gt;2 B 100 finance 30&lt;BR /&gt;4 D 400 sales 10&lt;BR /&gt;3 C 300 hr 20&lt;BR /&gt;;&lt;BR /&gt;run;&lt;BR /&gt;proc sort data=ndk out=nk;&lt;BR /&gt;by deptno;&lt;BR /&gt;run;&lt;BR /&gt;proc print data=nk;&lt;BR /&gt;by deptno;&lt;BR /&gt;sum sal;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;output&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="rename deptno.jpg" style="width: 423px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/23031iFCC086EAAFF1C3C9/image-size/large?v=v2&amp;amp;px=999" role="button" title="rename deptno.jpg" alt="rename deptno.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 06 Sep 2018 01:13:15 GMT</pubDate>
    <dc:creator>ysreenumba</dc:creator>
    <dc:date>2018-09-06T01:13:15Z</dc:date>
    <item>
      <title>how to rename while using proc print in result tab</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-rename-while-using-proc-print-in-result-tab/m-p/492853#M129606</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;how to rename deptno as "Total Sal of 10"&amp;nbsp; in result tab while using proc print.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data ndk;&lt;BR /&gt;input id name$ sal job $ deptno;&lt;BR /&gt;cards;&lt;BR /&gt;1 A 100 sales 10&lt;BR /&gt;3 C 300 hr 20&lt;BR /&gt;2 B 100 finance 30&lt;BR /&gt;4 D 400 sales 10&lt;BR /&gt;3 C 300 hr 20&lt;BR /&gt;;&lt;BR /&gt;run;&lt;BR /&gt;proc sort data=ndk out=nk;&lt;BR /&gt;by deptno;&lt;BR /&gt;run;&lt;BR /&gt;proc print data=nk;&lt;BR /&gt;by deptno;&lt;BR /&gt;sum sal;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;output&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="rename deptno.jpg" style="width: 423px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/23031iFCC086EAAFF1C3C9/image-size/large?v=v2&amp;amp;px=999" role="button" title="rename deptno.jpg" alt="rename deptno.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Sep 2018 01:13:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-rename-while-using-proc-print-in-result-tab/m-p/492853#M129606</guid>
      <dc:creator>ysreenumba</dc:creator>
      <dc:date>2018-09-06T01:13:15Z</dc:date>
    </item>
    <item>
      <title>Re: how to rename while using proc print in result tab</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-rename-while-using-proc-print-in-result-tab/m-p/492865#M129614</link>
      <description>&lt;P&gt;Use the SUMLABEL option with BY as illustrated here:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sort data=sashelp.class out=class;                                    
   by sex;                                                                 
run;  
                                                             
proc format;                                                               
   value $genderf                                                          
      'F'='Female'                                                         
      'M'='Male';                                                          
run;                                              
                                                                           
proc print data=class noobs                                                
     sumlabel='#byval(sex) Total' grandtotal_label='Grand Total';   
   by sex;                                                                 
   var name age height weight;                                             
   sum height weight;                                                                                                                                 
   format sex $genderf.;                                                   
run; &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Source:&amp;nbsp;&lt;A href="http://support.sas.com/kb/51/927.html" target="_blank"&gt;http://support.sas.com/kb/51/927.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/230382"&gt;@ysreenumba&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;how to rename deptno as "Total Sal of 10"&amp;nbsp; in result tab while using proc print.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data ndk;&lt;BR /&gt;input id name$ sal job $ deptno;&lt;BR /&gt;cards;&lt;BR /&gt;1 A 100 sales 10&lt;BR /&gt;3 C 300 hr 20&lt;BR /&gt;2 B 100 finance 30&lt;BR /&gt;4 D 400 sales 10&lt;BR /&gt;3 C 300 hr 20&lt;BR /&gt;;&lt;BR /&gt;run;&lt;BR /&gt;proc sort data=ndk out=nk;&lt;BR /&gt;by deptno;&lt;BR /&gt;run;&lt;BR /&gt;proc print data=nk;&lt;BR /&gt;by deptno;&lt;BR /&gt;sum sal;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;output&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="rename deptno.jpg" style="width: 423px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/23031iFCC086EAAFF1C3C9/image-size/large?v=v2&amp;amp;px=999" role="button" title="rename deptno.jpg" alt="rename deptno.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Sep 2018 02:30:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-rename-while-using-proc-print-in-result-tab/m-p/492865#M129614</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-09-06T02:30:34Z</dc:date>
    </item>
  </channel>
</rss>

