<?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 Why isn't Proc Report Grouping/Ordering  for certain columns ? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Why-isn-t-Proc-Report-Grouping-Ordering-for-certain-columns/m-p/738673#M230459</link>
    <description>&lt;P&gt;&amp;nbsp;I have a data that cannot group/order certain columns . Is it possible to group/order certain columns after the first 4 columns?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;current code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc report data=final nowindows center headline headskip missing split='@';
    column trtan subjid aecat col:;
	define trtan   / order order=internal 	noprint;
	define subjid   / order order=internal 	noprint;
 

    define col1    / display style(column)={asis=on just=left cellwidth=.8in} flow style(header)={just=left font_size=9pt} "Subject"  ;
	define col2    / display style(column)={asis=on just=left cellwidth=.6in} flow style(header)={just=left font_size=9pt} "Age"  ;
	define col3    / display style(column)={asis=on just=left cellwidth=.3in} flow style(header)={just=left font_size=9pt} "Sex"  ;
	define col4    / display style(column)={asis=on just=left cellwidth=.65in} flow style(header)={just=left font_size=9pt} "Group"  ;
	define col5    / order style(column)={asis=on just=left cellwidth=1.2in} flow style(header)={just=left font_size=9pt} "SOC/PT"  ;
	define col6    / order style(column)={asis=on just=left cellwidth=1.2in} flow style(header)={just=left font_size=9pt} "Start Date"  ;&lt;BR /&gt;&lt;BR /&gt;    define col7    / order style(column)={asis=on just=left cellwidth=1.2in} flow style(header)={just=left font_size=9pt} "Severity"  ;&lt;BR /&gt;    define col8    / order style(column)={asis=on just=left cellwidth=1.2in} flow style(header)={just=left font_size=9pt} "Related"  ;
 
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;subject     age     sex     group     SOC/PT            start_date     Severity     Related
1           10      M       1         Fever/cough       01-01-2021     Mild         1
1           10      M       1         Fatigue/weak      01-02-2021     Mild         1
1           10      M       1         Gastro/pain       01-03-2021     Mild         2
 &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;want:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;subject     age     sex     group     SOC/PT            start_date     Severity     Related
1           10      M       1         Fever/cough       01-01-2021     Mild         1
1           10      M       1         Fatigue/weak      01-02-2021     
1           10      M       1         Gastro/pain       01-03-2021                  2&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 03 May 2021 18:46:10 GMT</pubDate>
    <dc:creator>HitmonTran</dc:creator>
    <dc:date>2021-05-03T18:46:10Z</dc:date>
    <item>
      <title>Why isn't Proc Report Grouping/Ordering  for certain columns ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-isn-t-Proc-Report-Grouping-Ordering-for-certain-columns/m-p/738673#M230459</link>
      <description>&lt;P&gt;&amp;nbsp;I have a data that cannot group/order certain columns . Is it possible to group/order certain columns after the first 4 columns?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;current code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc report data=final nowindows center headline headskip missing split='@';
    column trtan subjid aecat col:;
	define trtan   / order order=internal 	noprint;
	define subjid   / order order=internal 	noprint;
 

    define col1    / display style(column)={asis=on just=left cellwidth=.8in} flow style(header)={just=left font_size=9pt} "Subject"  ;
	define col2    / display style(column)={asis=on just=left cellwidth=.6in} flow style(header)={just=left font_size=9pt} "Age"  ;
	define col3    / display style(column)={asis=on just=left cellwidth=.3in} flow style(header)={just=left font_size=9pt} "Sex"  ;
	define col4    / display style(column)={asis=on just=left cellwidth=.65in} flow style(header)={just=left font_size=9pt} "Group"  ;
	define col5    / order style(column)={asis=on just=left cellwidth=1.2in} flow style(header)={just=left font_size=9pt} "SOC/PT"  ;
	define col6    / order style(column)={asis=on just=left cellwidth=1.2in} flow style(header)={just=left font_size=9pt} "Start Date"  ;&lt;BR /&gt;&lt;BR /&gt;    define col7    / order style(column)={asis=on just=left cellwidth=1.2in} flow style(header)={just=left font_size=9pt} "Severity"  ;&lt;BR /&gt;    define col8    / order style(column)={asis=on just=left cellwidth=1.2in} flow style(header)={just=left font_size=9pt} "Related"  ;
 
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;subject     age     sex     group     SOC/PT            start_date     Severity     Related
1           10      M       1         Fever/cough       01-01-2021     Mild         1
1           10      M       1         Fatigue/weak      01-02-2021     Mild         1
1           10      M       1         Gastro/pain       01-03-2021     Mild         2
 &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;want:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;subject     age     sex     group     SOC/PT            start_date     Severity     Related
1           10      M       1         Fever/cough       01-01-2021     Mild         1
1           10      M       1         Fatigue/weak      01-02-2021     
1           10      M       1         Gastro/pain       01-03-2021                  2&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 03 May 2021 18:46:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-isn-t-Proc-Report-Grouping-Ordering-for-certain-columns/m-p/738673#M230459</guid>
      <dc:creator>HitmonTran</dc:creator>
      <dc:date>2021-05-03T18:46:10Z</dc:date>
    </item>
    <item>
      <title>Re: Why isn't Proc Report Grouping/Ordering  for certain columns ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-isn-t-Proc-Report-Grouping-Ordering-for-certain-columns/m-p/738680#M230463</link>
      <description>&lt;P&gt;Hi:&lt;BR /&gt;You have most of the variables on the report row listed as DISPLAY variables except for the NOPRINT items and COL5 and COL6. I had to make some fake data and I don't know what all of your variables looked like, especially: TRTAL SUBJID and AECAT. But I was able to come close making some fake data as shown below:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cynthia_sas_0-1620068927007.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/58979i04D0A7590AE045FD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cynthia_sas_0-1620068927007.png" alt="Cynthia_sas_0-1620068927007.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;I did not bother to split the Soc_PT data cells because we covered that in one of your other postings.&lt;BR /&gt;&lt;BR /&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Mon, 03 May 2021 19:09:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-isn-t-Proc-Report-Grouping-Ordering-for-certain-columns/m-p/738680#M230463</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2021-05-03T19:09:06Z</dc:date>
    </item>
  </channel>
</rss>

