<?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: display each row in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/display-each-row/m-p/27461#M4349</link>
    <description>Thank you Cynthia! It worked.</description>
    <pubDate>Tue, 24 Jun 2008 18:32:46 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2008-06-24T18:32:46Z</dc:date>
    <item>
      <title>display each row</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/display-each-row/m-p/27459#M4347</link>
      <description>Hi everyone,&lt;BR /&gt;
I was wondering if anyone could help me with a question I have with proc report. I used the following codes to create a table ordered by the variable "count". I used ods msoffice2k option to save my table in excel. The problem I had was cell values for "count" became missing when the adjacent cells were associated with the same value. Does anybody know of a way to force the values of the order variable to be presented in the table? Thanks very much in advance.&lt;BR /&gt;
&lt;BR /&gt;
ods msoffice2k file="freq_sex.xls " path=odsout style=minimal ;&lt;BR /&gt;
&lt;BR /&gt;
proc report data=report nowd headline headskip ;&lt;BR /&gt;
  &lt;BR /&gt;
   columns sex_1 count pct_total; &lt;BR /&gt;
  &lt;BR /&gt;
    define sex_1 / display "Field Name" left ;&lt;BR /&gt;
    define count / order descending "Record Count" center ;&lt;BR /&gt;
    define pct_total / display "Percent Total";&lt;BR /&gt;
&lt;BR /&gt;
    run ;&lt;BR /&gt;
&lt;BR /&gt;
Sample output:&lt;BR /&gt;
&lt;BR /&gt;
Field Name     Record Count     Percent Total&lt;BR /&gt;
Female           121                    50%&lt;BR /&gt;
Male                                        50%</description>
      <pubDate>Tue, 24 Jun 2008 15:58:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/display-each-row/m-p/27459#M4347</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-06-24T15:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: display each row</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/display-each-row/m-p/27460#M4348</link>
      <description>Hi:&lt;BR /&gt;
  These couple of examples may help...not with a count variable, just with sashelp.class and how to show a value for an order or group variable (use a computed column).&lt;BR /&gt;
cynthia&lt;BR /&gt;
[pre]&lt;BR /&gt;
ods msoffice2k file="c:\temp\prtgend.xls " &lt;BR /&gt;
    style=minimal ;&lt;BR /&gt;
              &lt;BR /&gt;
proc report data=sashelp.class nowd ;&lt;BR /&gt;
title 'proc report examp -- use NOPRINT on SEX var after seeing how PRTGEND works';&lt;BR /&gt;
  columns sex prtgend name age; &lt;BR /&gt;
  define sex  / order "Gender1 as Order";&lt;BR /&gt;
  define prtgend / computed 'Gender2';&lt;BR /&gt;
  define age / display "age";&lt;BR /&gt;
  compute before sex;&lt;BR /&gt;
    length holdvar $1;&lt;BR /&gt;
    holdvar = sex;&lt;BR /&gt;
  endcomp;&lt;BR /&gt;
  compute prtgend / character length=1;&lt;BR /&gt;
    prtgend = holdvar;&lt;BR /&gt;
  endcomp;&lt;BR /&gt;
run ;&lt;BR /&gt;
               &lt;BR /&gt;
proc report data=sashelp.class nowd;&lt;BR /&gt;
  title 'Summary Report with Proc Report';&lt;BR /&gt;
  columns sex n pctn;&lt;BR /&gt;
  define sex / group 'Gender';&lt;BR /&gt;
  define n / 'Count';&lt;BR /&gt;
  define pctn / 'Percent' f=percent8.2;&lt;BR /&gt;
  rbreak after / summarize;&lt;BR /&gt;
run;&lt;BR /&gt;
ods msoffice2k close;&lt;BR /&gt;
[/pre]</description>
      <pubDate>Tue, 24 Jun 2008 16:40:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/display-each-row/m-p/27460#M4348</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2008-06-24T16:40:57Z</dc:date>
    </item>
    <item>
      <title>Re: display each row</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/display-each-row/m-p/27461#M4349</link>
      <description>Thank you Cynthia! It worked.</description>
      <pubDate>Tue, 24 Jun 2008 18:32:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/display-each-row/m-p/27461#M4349</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-06-24T18:32:46Z</dc:date>
    </item>
  </channel>
</rss>

