<?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 missing and formats in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-missing-and-formats/m-p/76730#M8680</link>
    <description>Try ORDER=FORMATTED on the DEFINE TX_HOSPITAL statement.

Edited by Tim@SAS&lt;BR /&gt;
&lt;BR /&gt;
    &lt;BR /&gt;
Message was edited by: Tim@SAS</description>
    <pubDate>Mon, 26 Oct 2009 16:44:49 GMT</pubDate>
    <dc:creator>Tim_SAS</dc:creator>
    <dc:date>2009-10-26T16:44:49Z</dc:date>
    <item>
      <title>Proc Report missing and formats</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-missing-and-formats/m-p/76729#M8679</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
I have a strange behavior in proc report when using formatted across columns.&lt;BR /&gt;
&lt;BR /&gt;
When I run proc report without the missing statement (as below), I get the correct output in that my hospitals are listed in the proper order, and then the group 'Other' catches the remaining hospitals (see below). When I use the missing statement,  the  'Other' group comes first, and I would like it to come last in the list.&lt;BR /&gt;
&lt;BR /&gt;
proc format ;&lt;BR /&gt;
value $across_inpatient (notsorted)&lt;BR /&gt;
'1'='H1'&lt;BR /&gt;
'2'='H2'&lt;BR /&gt;
'3'='H3'&lt;BR /&gt;
'4'='H4'&lt;BR /&gt;
Other = 'Other';&lt;BR /&gt;
;run;&lt;BR /&gt;
&lt;BR /&gt;
ods html;&lt;BR /&gt;
proc report data= inpatient_join3 nowd ;&lt;BR /&gt;
&lt;BR /&gt;
column  closest_hospital tx_hospital real_separations  , sum ;&lt;BR /&gt;
&lt;BR /&gt;
define tx_hospital/ group across "Treatment Site"  order=internal Center format= $across_inpatient. ;&lt;BR /&gt;
define closest_hospital/ group   order=internal format=bri_inpatient. "Closest Hospital" left;&lt;BR /&gt;
define real_separations/ analysis sum format=comma12.0 '' center;&lt;BR /&gt;
define sum / "Total" center format=comma12.0 center;&lt;BR /&gt;
&lt;BR /&gt;
rbreak after / summarize  ;&lt;BR /&gt;
run;&lt;BR /&gt;
ods html close;&lt;BR /&gt;
&lt;BR /&gt;
Without Missing:&lt;BR /&gt;
Closest Hospital  	H1	H2	H3	H4    Other&lt;BR /&gt;
&lt;BR /&gt;
With Missing :&lt;BR /&gt;
Closest Hospital        Other  H1    H2     H3     H4&lt;BR /&gt;
&lt;BR /&gt;
How can this be fixed.&lt;BR /&gt;
&lt;BR /&gt;
Thanks,</description>
      <pubDate>Mon, 26 Oct 2009 15:37:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-missing-and-formats/m-p/76729#M8679</guid>
      <dc:creator>BigD</dc:creator>
      <dc:date>2009-10-26T15:37:43Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report missing and formats</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-missing-and-formats/m-p/76730#M8680</link>
      <description>Try ORDER=FORMATTED on the DEFINE TX_HOSPITAL statement.

Edited by Tim@SAS&lt;BR /&gt;
&lt;BR /&gt;
    &lt;BR /&gt;
Message was edited by: Tim@SAS</description>
      <pubDate>Mon, 26 Oct 2009 16:44:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-missing-and-formats/m-p/76730#M8680</guid>
      <dc:creator>Tim_SAS</dc:creator>
      <dc:date>2009-10-26T16:44:49Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report missing and formats</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-missing-and-formats/m-p/76731#M8681</link>
      <description>The order =formatted changes the order to alphabetical order, also not desired.</description>
      <pubDate>Mon, 26 Oct 2009 16:57:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-missing-and-formats/m-p/76731#M8681</guid>
      <dc:creator>BigD</dc:creator>
      <dc:date>2009-10-26T16:57:18Z</dc:date>
    </item>
  </channel>
</rss>

