<?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 define statement order  options... in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-report-define-statement-order-options/m-p/439140#M20470</link>
    <description>Hi, &lt;BR /&gt;&lt;BR /&gt;  PROC REPORT suppresses repetitive values for GROUP and ORDER items. Since you made SUBJECT a usage of ORDER (I assume so you could use ORDER=INTERNAL), then PROC REPORT thinks it is doing you a favor here by NOT showing you the repeated value for SUBJECT. If your data are already in the order you want and you want to see every row for subject with a value, then change the usage of SUBJECT to DISPLAY instead of ORDER and you'll probably have to change the value of TREATMENT to DISPLAY as well. &lt;BR /&gt;&lt;BR /&gt;There is a way to make a COMPUTED column if you absolutely need for Subject to be an ORDER item. But that involves a bit more PROC REPORT code.&lt;BR /&gt;&lt;BR /&gt;cynthia</description>
    <pubDate>Thu, 22 Feb 2018 01:01:29 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2018-02-22T01:01:29Z</dc:date>
    <item>
      <title>Proc report define statement order  options...</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-report-define-statement-order-options/m-p/439068#M20465</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;I have my proc report statement as&amp;nbsp;&lt;BR /&gt;proc report data=transpose1a out=qc&lt;BR /&gt;style(report)=[rules=rows]&lt;BR /&gt;;&lt;BR /&gt;by population&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;treatment&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;pageof title3;&lt;BR /&gt;col subject treatment&amp;nbsp; ;&lt;BR /&gt;define subject / order order=internal "Subject"&lt;BR /&gt;style(header)=[just=left ]&lt;BR /&gt;style(column)=[just=left ];&lt;/P&gt;&lt;P&gt;define&amp;nbsp;treatment&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;/ order order=internal "Treatment"&lt;BR /&gt;style(header)=[just=left ]&lt;BR /&gt;style(column)=[just=left ];&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;And the output which I get is like......&lt;/P&gt;&lt;P&gt;Subject&amp;nbsp; &amp;nbsp;Treatment&lt;/P&gt;&lt;P&gt;12345&amp;nbsp; &amp;nbsp; &amp;nbsp;Drug A&lt;/P&gt;&lt;P&gt;34567&amp;nbsp; &amp;nbsp; &amp;nbsp;Drug B&lt;/P&gt;&lt;P&gt;78901&amp;nbsp; &amp;nbsp; Drug C&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Drug D&lt;/P&gt;&lt;P&gt;90503&amp;nbsp; &amp;nbsp; &amp;nbsp;Drug E&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Drug F&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Notice in the output, same subject 78901 AND 90503 has different treatments, so I want to&amp;nbsp;repeat the subject number&amp;nbsp; for another&amp;nbsp;treatment too...something like...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Subject&amp;nbsp; &amp;nbsp;Treatment&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;78901&amp;nbsp; &amp;nbsp; Drug C&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;78901&lt;/SPAN&gt;&amp;nbsp; &amp;nbsp; Drug D&lt;/P&gt;&lt;P&gt;90503&amp;nbsp; &amp;nbsp; &amp;nbsp;Drug E&lt;/P&gt;&lt;P&gt;90503&amp;nbsp; &amp;nbsp; Drug F&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this possible??&amp;nbsp;Any&amp;nbsp;help will be greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2018 20:55:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-report-define-statement-order-options/m-p/439068#M20465</guid>
      <dc:creator>Aidaan_10</dc:creator>
      <dc:date>2018-02-21T20:55:06Z</dc:date>
    </item>
    <item>
      <title>Re: Proc report define statement order  options...</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-report-define-statement-order-options/m-p/439140#M20470</link>
      <description>Hi, &lt;BR /&gt;&lt;BR /&gt;  PROC REPORT suppresses repetitive values for GROUP and ORDER items. Since you made SUBJECT a usage of ORDER (I assume so you could use ORDER=INTERNAL), then PROC REPORT thinks it is doing you a favor here by NOT showing you the repeated value for SUBJECT. If your data are already in the order you want and you want to see every row for subject with a value, then change the usage of SUBJECT to DISPLAY instead of ORDER and you'll probably have to change the value of TREATMENT to DISPLAY as well. &lt;BR /&gt;&lt;BR /&gt;There is a way to make a COMPUTED column if you absolutely need for Subject to be an ORDER item. But that involves a bit more PROC REPORT code.&lt;BR /&gt;&lt;BR /&gt;cynthia</description>
      <pubDate>Thu, 22 Feb 2018 01:01:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-report-define-statement-order-options/m-p/439140#M20470</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2018-02-22T01:01:29Z</dc:date>
    </item>
  </channel>
</rss>

