<?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 customize in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/proc-report-customize/m-p/759313#M239941</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/300897"&gt;@ss171&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thanks , Changing to group for type and color will not print the type for all as "flower" but I want it to be populated in the final report&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The fix is given here:&amp;nbsp;&lt;A href="https://communities.sas.com/t5/SAS-Procedures/Repeat-group-variables-in-proc-report-containing-across/m-p/286060#M59463" target="_blank"&gt;https://communities.sas.com/t5/SAS-Procedures/Repeat-group-variables-in-proc-report-containing-across/m-p/286060#M59463&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 04 Aug 2021 13:16:41 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2021-08-04T13:16:41Z</dc:date>
    <item>
      <title>proc report customize</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-report-customize/m-p/759297#M239928</link>
      <description>&lt;P&gt;I have pasted a small sample data for reference and the expected output . If anyone can help in customizing the proc report output. Let me know if this can be done by changing proc report options in the existing code&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data example;
input Type $ Color $ Season $ Cost;
cards;
flower purple winter 1000
flower pink spring 2000
flower pink winter 1500
;
run;

proc report nowd data=example;
col type color season,cost;
 define type / display;
 define color / display;
 define season / across ' ';
 define cost / ' ';
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ss171_0-1628079452887.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/62242i31B3F2BA71E7A28D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ss171_0-1628079452887.png" alt="ss171_0-1628079452887.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Aug 2021 12:17:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-report-customize/m-p/759297#M239928</guid>
      <dc:creator>ss171</dc:creator>
      <dc:date>2021-08-04T12:17:45Z</dc:date>
    </item>
    <item>
      <title>Re: proc report customize</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-report-customize/m-p/759300#M239930</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc report nowd data=example;
col type color season,cost;
 define type / group;
 define color / group;
 define season / across ' ';
 define cost / ' ';
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 04 Aug 2021 12:29:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-report-customize/m-p/759300#M239930</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-08-04T12:29:16Z</dc:date>
    </item>
    <item>
      <title>Re: proc report customize</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-report-customize/m-p/759301#M239931</link>
      <description>&lt;P&gt;Changing "display" to "group" in the define statements for "type" and "color" will get you closer to the expected result, unfortunately the table header still looks disgusting.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Aug 2021 12:30:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-report-customize/m-p/759301#M239931</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2021-08-04T12:30:13Z</dc:date>
    </item>
    <item>
      <title>Re: proc report customize</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-report-customize/m-p/759302#M239932</link>
      <description>&lt;P&gt;Use two variables as GROUP, and change the order in the COLUMN statement:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc report data=example;
column type color cost,season;
define type / group;
define color / group;
define season / across ' ';
define cost / ' ';
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 04 Aug 2021 12:31:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-report-customize/m-p/759302#M239932</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-08-04T12:31:31Z</dc:date>
    </item>
    <item>
      <title>Re: proc report customize</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-report-customize/m-p/759305#M239934</link>
      <description>&lt;P&gt;Thanks , Changing to group for type and color will not print the type for all as "flower" but I want it to be populated in the final report&lt;/P&gt;</description>
      <pubDate>Wed, 04 Aug 2021 12:39:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-report-customize/m-p/759305#M239934</guid>
      <dc:creator>ss171</dc:creator>
      <dc:date>2021-08-04T12:39:09Z</dc:date>
    </item>
    <item>
      <title>Re: proc report customize</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-report-customize/m-p/759306#M239935</link>
      <description>Changing it to group will not populated 'type' in the report for all , as this is just a sample data which I had pasted so this is fine but for the actual data and report , its needed to print in the report as the first column</description>
      <pubDate>Wed, 04 Aug 2021 12:41:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-report-customize/m-p/759306#M239935</guid>
      <dc:creator>ss171</dc:creator>
      <dc:date>2021-08-04T12:41:41Z</dc:date>
    </item>
    <item>
      <title>Re: proc report customize</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-report-customize/m-p/759310#M239938</link>
      <description>&lt;P&gt;Add a computed column that will always have the value:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc report nowd data=example;
col type disp_type color cost,season;
define type / group noprint;
define disp_type / computed "Type";
define color / group;
define season / across ' ';
define cost / ' ';
compute before type;
  hold_type = type;
endcomp;
compute disp_type / character;
  disp_type = hold_type;
endcomp;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Gleaned from a code by &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13549"&gt;@Cynthia_sas&lt;/a&gt;&amp;nbsp;found here:&amp;nbsp;&lt;A href="https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-report-repeat-the-group-value-for-each-lines/td-p/409184" target="_blank" rel="noopener"&gt;https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-report-repeat-the-group-value-for-each-lines/td-p/409184&lt;/A&gt;, which is the first result of a google search for "sas proc report print group value in every line" (see Maxim 6).&lt;/P&gt;</description>
      <pubDate>Wed, 04 Aug 2021 12:56:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-report-customize/m-p/759310#M239938</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-08-04T12:56:19Z</dc:date>
    </item>
    <item>
      <title>Re: proc report customize</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-report-customize/m-p/759313#M239941</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/300897"&gt;@ss171&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thanks , Changing to group for type and color will not print the type for all as "flower" but I want it to be populated in the final report&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The fix is given here:&amp;nbsp;&lt;A href="https://communities.sas.com/t5/SAS-Procedures/Repeat-group-variables-in-proc-report-containing-across/m-p/286060#M59463" target="_blank"&gt;https://communities.sas.com/t5/SAS-Procedures/Repeat-group-variables-in-proc-report-containing-across/m-p/286060#M59463&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Aug 2021 13:16:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-report-customize/m-p/759313#M239941</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-08-04T13:16:41Z</dc:date>
    </item>
    <item>
      <title>Re: proc report customize</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-report-customize/m-p/759317#M239945</link>
      <description>Thanks &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;! That's exactly how I hope folks will find some of my older posts. For more ins and outs with ACROSS items and PROC REPORT, this is my paper about using ACROSS items: &lt;A href="https://support.sas.com/resources/papers/proceedings14/SAS388-2014.pdf" target="_blank"&gt;https://support.sas.com/resources/papers/proceedings14/SAS388-2014.pdf&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;Cynthia</description>
      <pubDate>Wed, 04 Aug 2021 13:29:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-report-customize/m-p/759317#M239945</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2021-08-04T13:29:08Z</dc:date>
    </item>
    <item>
      <title>Re: proc report customize</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-report-customize/m-p/759321#M239946</link>
      <description>&lt;P&gt;Thanks,&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13549"&gt;@Cynthia_sas&lt;/a&gt;&amp;nbsp;, I have bookmarked that link.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, now that I'm watching the Olympic Track and Field competition, I think your title "Sailing Over ... Hurdles" is somewhat of a mixed metaphor ...&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt; , at least based on Olympic sports.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Aug 2021 13:41:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-report-customize/m-p/759321#M239946</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-08-04T13:41:45Z</dc:date>
    </item>
    <item>
      <title>Re: proc report customize</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-report-customize/m-p/759338#M239957</link>
      <description>Yes, I am sports-challenged. But somehow, "Leaping Over the ACROSS Hurdle" didn't sound as triumphant as "Sailing Over"!&lt;BR /&gt;Cynthia</description>
      <pubDate>Wed, 04 Aug 2021 14:19:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-report-customize/m-p/759338#M239957</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2021-08-04T14:19:59Z</dc:date>
    </item>
    <item>
      <title>Re: proc report customize</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-report-customize/m-p/764397#M242125</link>
      <description>&lt;P&gt;I used the below code to display total as well in the last row but the value is retained till there for type&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc report nowd data=example;
col type disp_type color cost,season cost=tot;
define type / group noprint;
define disp_type / computed "Type";
define color / group;
define season / across ' ';
define cost / ' ';
define tot / analysis sum 'Total' format=comma32. style={tagattr='format:#,##0;-#,##0'} ;
      rbreak after / summarize style=[font_weight = bold] dul dol;
compute before type;
  hold_type = type;
endcomp;
compute disp_type / character;
  disp_type = hold_type;
endcomp;
 compute after;
color='Total';
endcomp; run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;but just want to remove the column1 i.e flower from the last row i.e. in the total row . Please guide if it can be happened&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ss171_0-1630043748136.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/63079iF9AD9245FEC55E9E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ss171_0-1630043748136.png" alt="ss171_0-1630043748136.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Aug 2021 05:56:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-report-customize/m-p/764397#M242125</guid>
      <dc:creator>ss171</dc:creator>
      <dc:date>2021-08-27T05:56:39Z</dc:date>
    </item>
    <item>
      <title>Re: proc report customize</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-report-customize/m-p/764558#M242186</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Just as you can assign a value in the COMPUTE block to get the word "Total" in the column for COLOR, you can change the value of DISP_TYPE to be either blank or something else (like All):&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cynthia_sas_0-1630093804004.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/63105i7F71AEC20420BA6F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cynthia_sas_0-1630093804004.png" alt="Cynthia_sas_0-1630093804004.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Aug 2021 19:50:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-report-customize/m-p/764558#M242186</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2021-08-27T19:50:43Z</dc:date>
    </item>
  </channel>
</rss>

