<?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: Looking for better way for this report in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Looking-for-better-way-for-this-report/m-p/75223#M8553</link>
    <description>Smarter? I don't know.  Different, sort of.&lt;BR /&gt;
&lt;BR /&gt;
I just realized this is the same as the post by John JW sorry 'bout 'dat.&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
ods rft file='class02.rtf';&lt;BR /&gt;
ods rtf startpage=never;&lt;BR /&gt;
proc report nowd list data=sashelp.class;&lt;BR /&gt;
   column sex name age height weight;&lt;BR /&gt;
   define _all_ / display;&lt;BR /&gt;
   define sex / order noprint;&lt;BR /&gt;
   break before sex / page;&lt;BR /&gt;
   compute before _page_;&lt;BR /&gt;
      line 'Sex:' sex $1.;&lt;BR /&gt;
      endcomp;&lt;BR /&gt;
   run;&lt;BR /&gt;
ods rtf close;&lt;BR /&gt;
[/pre]

Pay attentention.&lt;BR /&gt;
&lt;BR /&gt;
    &lt;BR /&gt;
Message was edited by: data _null_;</description>
    <pubDate>Fri, 09 Oct 2009 23:02:59 GMT</pubDate>
    <dc:creator>data_null__</dc:creator>
    <dc:date>2009-10-09T23:02:59Z</dc:date>
    <item>
      <title>Looking for better way for this report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Looking-for-better-way-for-this-report/m-p/75221#M8551</link>
      <description>Hi,&lt;BR /&gt;
Take sashelp.class as example, how can I create a report as follows:&lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt; Sex: F&lt;/B&gt;&lt;BR /&gt;
   Name         Height&lt;BR /&gt;
   Alice          56.5&lt;BR /&gt;
   Barbara        65.3&lt;BR /&gt;
   Carol          62.8&lt;BR /&gt;
   Jane           59.8&lt;BR /&gt;
   Janet          62.5&lt;BR /&gt;
   Joyce          51.3&lt;BR /&gt;
   Judy           64.3&lt;BR /&gt;
   Louise         56.3&lt;BR /&gt;
   Mary           66.5&lt;BR /&gt;
   &lt;BR /&gt;
&lt;B&gt; Sex: M&lt;/B&gt;&lt;BR /&gt;
   Name         Height&lt;BR /&gt;
   Alfred           69&lt;BR /&gt;
   Henry          63.5&lt;BR /&gt;
   James          57.3&lt;BR /&gt;
   Jeffrey        62.5&lt;BR /&gt;
   John             59&lt;BR /&gt;
   Philip           72&lt;BR /&gt;
   Robert         64.8&lt;BR /&gt;
   Ronald           67&lt;BR /&gt;
   Thomas         57.5&lt;BR /&gt;
   William        66.5&lt;BR /&gt;
&lt;BR /&gt;
For now, I always do it using TITLE statement with #BYVAL. I am wondering if there exist a smarter method.&lt;BR /&gt;
&lt;BR /&gt;
Any idea will be appreciated.</description>
      <pubDate>Fri, 09 Oct 2009 06:57:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Looking-for-better-way-for-this-report/m-p/75221#M8551</guid>
      <dc:creator>KevinQin</dc:creator>
      <dc:date>2009-10-09T06:57:05Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for better way for this report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Looking-for-better-way-for-this-report/m-p/75222#M8552</link>
      <description>Hi Kevin,&lt;BR /&gt;
&lt;BR /&gt;
You can try this:&lt;BR /&gt;
&lt;BR /&gt;
proc sort data=sashelp.class out=class;&lt;BR /&gt;
    by sex;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
data class;&lt;BR /&gt;
    set class class class class class class class class class class class class;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
proc report data=class nowindows;&lt;BR /&gt;
    column sex name height;&lt;BR /&gt;
&lt;BR /&gt;
    define sex  /order noprint;&lt;BR /&gt;
&lt;BR /&gt;
    break after sex/page;&lt;BR /&gt;
&lt;BR /&gt;
    compute before _page_/left;&lt;BR /&gt;
        line "Sex: " sex $8.;&lt;BR /&gt;
    endcomp;&lt;BR /&gt;
run;</description>
      <pubDate>Fri, 09 Oct 2009 08:48:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Looking-for-better-way-for-this-report/m-p/75222#M8552</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-10-09T08:48:16Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for better way for this report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Looking-for-better-way-for-this-report/m-p/75223#M8553</link>
      <description>Smarter? I don't know.  Different, sort of.&lt;BR /&gt;
&lt;BR /&gt;
I just realized this is the same as the post by John JW sorry 'bout 'dat.&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
ods rft file='class02.rtf';&lt;BR /&gt;
ods rtf startpage=never;&lt;BR /&gt;
proc report nowd list data=sashelp.class;&lt;BR /&gt;
   column sex name age height weight;&lt;BR /&gt;
   define _all_ / display;&lt;BR /&gt;
   define sex / order noprint;&lt;BR /&gt;
   break before sex / page;&lt;BR /&gt;
   compute before _page_;&lt;BR /&gt;
      line 'Sex:' sex $1.;&lt;BR /&gt;
      endcomp;&lt;BR /&gt;
   run;&lt;BR /&gt;
ods rtf close;&lt;BR /&gt;
[/pre]

Pay attentention.&lt;BR /&gt;
&lt;BR /&gt;
    &lt;BR /&gt;
Message was edited by: data _null_;</description>
      <pubDate>Fri, 09 Oct 2009 23:02:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Looking-for-better-way-for-this-report/m-p/75223#M8553</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2009-10-09T23:02:59Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for better way for this report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Looking-for-better-way-for-this-report/m-p/75224#M8554</link>
      <description>Thank you. &lt;BR /&gt;
It is excat what I want. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Sat, 10 Oct 2009 01:43:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Looking-for-better-way-for-this-report/m-p/75224#M8554</guid>
      <dc:creator>KevinQin</dc:creator>
      <dc:date>2009-10-10T01:43:51Z</dc:date>
    </item>
  </channel>
</rss>

