<?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 How to use proc report efficiently? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/How-to-use-proc-report-efficiently/m-p/178712#M45630</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am working on a dataset that has 6 variables as treatment like A,B,C,D,E,F, and 6 categories Age, height, weight, BMI, Race, Gender as observations. Like below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; B&amp;nbsp;&amp;nbsp;&amp;nbsp; C&amp;nbsp;&amp;nbsp; D&amp;nbsp;&amp;nbsp; E&amp;nbsp;&amp;nbsp; F&lt;/P&gt;&lt;P&gt;Age&lt;/P&gt;&lt;P&gt;Height&lt;/P&gt;&lt;P&gt;Weight&lt;/P&gt;&lt;P&gt;BMI&lt;/P&gt;&lt;P&gt;Race&lt;/P&gt;&lt;P&gt;Gender&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to use proc report where I need my first page and so forth as shown below. Basically having to break vertically trt variables and show three categories at a time. Any help will be highly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; B&amp;nbsp;&amp;nbsp;&amp;nbsp; C&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Age&lt;/P&gt;&lt;P&gt;Height&lt;/P&gt;&lt;P&gt;Weight&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; D&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; E&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; F&lt;/P&gt;&lt;P&gt;Age&lt;/P&gt;&lt;P&gt;Height&lt;/P&gt;&lt;P&gt;Weight&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; B&amp;nbsp;&amp;nbsp;&amp;nbsp; C&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;BMI&lt;/P&gt;&lt;P&gt;Race&lt;/P&gt;&lt;P&gt;Gender&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; D&amp;nbsp;&amp;nbsp; E&amp;nbsp;&amp;nbsp; F&lt;/P&gt;&lt;P&gt;BMI&lt;/P&gt;&lt;P&gt;Race&lt;/P&gt;&lt;P&gt;Gender&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Dec 2013 23:38:26 GMT</pubDate>
    <dc:creator>keepitup</dc:creator>
    <dc:date>2013-12-19T23:38:26Z</dc:date>
    <item>
      <title>How to use proc report efficiently?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-use-proc-report-efficiently/m-p/178712#M45630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am working on a dataset that has 6 variables as treatment like A,B,C,D,E,F, and 6 categories Age, height, weight, BMI, Race, Gender as observations. Like below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; B&amp;nbsp;&amp;nbsp;&amp;nbsp; C&amp;nbsp;&amp;nbsp; D&amp;nbsp;&amp;nbsp; E&amp;nbsp;&amp;nbsp; F&lt;/P&gt;&lt;P&gt;Age&lt;/P&gt;&lt;P&gt;Height&lt;/P&gt;&lt;P&gt;Weight&lt;/P&gt;&lt;P&gt;BMI&lt;/P&gt;&lt;P&gt;Race&lt;/P&gt;&lt;P&gt;Gender&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to use proc report where I need my first page and so forth as shown below. Basically having to break vertically trt variables and show three categories at a time. Any help will be highly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; B&amp;nbsp;&amp;nbsp;&amp;nbsp; C&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Age&lt;/P&gt;&lt;P&gt;Height&lt;/P&gt;&lt;P&gt;Weight&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; D&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; E&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; F&lt;/P&gt;&lt;P&gt;Age&lt;/P&gt;&lt;P&gt;Height&lt;/P&gt;&lt;P&gt;Weight&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; B&amp;nbsp;&amp;nbsp;&amp;nbsp; C&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;BMI&lt;/P&gt;&lt;P&gt;Race&lt;/P&gt;&lt;P&gt;Gender&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; D&amp;nbsp;&amp;nbsp; E&amp;nbsp;&amp;nbsp; F&lt;/P&gt;&lt;P&gt;BMI&lt;/P&gt;&lt;P&gt;Race&lt;/P&gt;&lt;P&gt;Gender&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Dec 2013 23:38:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-use-proc-report-efficiently/m-p/178712#M45630</guid>
      <dc:creator>keepitup</dc:creator>
      <dc:date>2013-12-19T23:38:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to use proc report efficiently?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-use-proc-report-efficiently/m-p/178713#M45631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are just trying to get output as simply as possible, why not just have 4 separate PROC REPORTs . . .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Dec 2013 23:55:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-use-proc-report-efficiently/m-p/178713#M45631</guid>
      <dc:creator>Fugue</dc:creator>
      <dc:date>2013-12-19T23:55:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to use proc report efficiently?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-use-proc-report-efficiently/m-p/178714#M45632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the id option in the proc report, to achieve the desired result. The ID option will display the variables with id option in all the pages of the report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the define statement , we can use the id option for the respective variables you want to retain across all the pages. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please try the sample code as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data have;&lt;/P&gt;&lt;P&gt;&amp;nbsp; input category$ A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; B&amp;nbsp;&amp;nbsp;&amp;nbsp; C&amp;nbsp;&amp;nbsp; D&amp;nbsp;&amp;nbsp; E&amp;nbsp;&amp;nbsp; F;&lt;/P&gt;&lt;P&gt;cards;&lt;/P&gt;&lt;P&gt;Age 1 2 3 4 5 6 &lt;/P&gt;&lt;P&gt;Height 1 2 3 4 5 6&lt;/P&gt;&lt;P&gt;Weight 1 2 3 4 5 6&lt;/P&gt;&lt;P&gt;BMI 1 2 3 4 5 6 &lt;/P&gt;&lt;P&gt;Race 1 2 3 4 5 6 &lt;/P&gt;&lt;P&gt;Gender 1 2 3 4 5 6&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data have_;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set have;&lt;/P&gt;&lt;P&gt;&amp;nbsp; if _n_ in (1,2,3) then flag=1;&lt;/P&gt;&lt;P&gt;else flag=2;&lt;/P&gt;&lt;P&gt;run; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc report data= have_ headline headskip missing;&lt;/P&gt;&lt;P&gt;column category a b c d e f flag;&lt;/P&gt;&lt;P&gt;define category / width=30 id;&lt;/P&gt;&lt;P&gt;define a / width=22 ;&lt;/P&gt;&lt;P&gt;define b / width=22 ;&lt;/P&gt;&lt;P&gt;define c / width=22 ;&lt;/P&gt;&lt;P&gt;define d / width=22 ;&lt;/P&gt;&lt;P&gt;define e / width=22 ;&lt;/P&gt;&lt;P&gt;define f / width=22 ;&lt;/P&gt;&lt;P&gt;define flag/ group noprint ;&lt;/P&gt;&lt;P&gt;break after flag/page ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;jag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Dec 2013 02:39:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-use-proc-report-efficiently/m-p/178714#M45632</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2013-12-20T02:39:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to use proc report efficiently?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-use-proc-report-efficiently/m-p/178715#M45633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; Although the posted solution will work for LISTING, it will &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;NOT&lt;/STRONG&gt;&lt;/SPAN&gt; work for ODS HTML (or RTF or PDF). See the attached screenshot. It would be better to put the PAGE option on the DEFINE statement for variable D in order to indicate WHICH variable should start the page. As you can see, #1, uses the original code and does not work in HTML; however #2 code does work in HTML and LISTING and PDF and RTF. Note that options like HEADLINE, HEADSKIP and WIDTH= are LISTING only options and ignored by other ODS destinations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cynthia&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;data have;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; input category $ A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; B&amp;nbsp;&amp;nbsp;&amp;nbsp; C&amp;nbsp;&amp;nbsp; D&amp;nbsp;&amp;nbsp; E&amp;nbsp;&amp;nbsp; F;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;cards;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;Age 1 2 3 4 5 6 &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;Height 1 2 3 4 5 6&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;Weight 1 2 3 4 5 6&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;BMI 1 2 3 4 5 6 &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;Race 1 2 3 4 5 6 &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;Gender 1 2 3 4 5 6&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;data have_;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; set have;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; if _n_ in (1,2,3) then flag=1;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;else flag=2;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;run; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;ods _all_ close;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;ods listing;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;ods html file='c:\temp\forum_page.html';&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;ods rtf file='c:\temp\forum_page.rtf';&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;ods pdf file='c:\temp\forum_page.pdf';&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;proc report data= have_&amp;nbsp;&amp;nbsp; missing;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;title '1) Original solution works in LISTING but NOT in HTML, RTF or PDF';&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;column category a b c d e f flag;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;define category / width=30 id;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;define a / width=22 ;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;define b / width=22 ;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;define c / width=22 ;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;define d / width=22 ;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;define e / width=22 ;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;define f / width=22 ;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;define flag/ group noprint ;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;break after flag/page ;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;proc report data= have_&amp;nbsp;&amp;nbsp; missing;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;title '2) Revised solution works in LISTING and HTML, (and RTF, PDF)';&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;column category a b c d e f flag;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;define category / width=30 id;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;define a / width=22 ;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;define b / width=22 ;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;define c / width=22 ;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;define d / width=22 page;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;define e / width=22 ;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;define f / width=22 ;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;define flag/ group noprint ;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;break after flag/page ;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;ods _all_ close;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/11855i3E7E83BADA5B37D8/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="use_ID_page.png" title="use_ID_page.png" /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Dec 2013 17:09:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-use-proc-report-efficiently/m-p/178715#M45633</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2013-12-20T17:09:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to use proc report efficiently?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-use-proc-report-efficiently/m-p/178716#M45634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Cynthia,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for showing the difference between the listing and the RTF, HTML, PDF. When i tested the code, i checked it only in the listing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However here i would like to know why such difference is there between the listing and other ODS destination.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Dec 2013 06:53:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-use-proc-report-efficiently/m-p/178716#M45634</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2013-12-21T06:53:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to use proc report efficiently?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-use-proc-report-efficiently/m-p/178717#M45635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;The LISTING destination (also known as the "monospace" destination, was originally, the ONLY destination. The LISTING destination is under the control of SAS for display and printing. Therefore, options like Linesize, Pagesize and other options, like HEADLINE, HEADSKIP in PROC REPORT were designed only for the LISTING destination. Other destinations are not impacted by options like Linesize and Pagesize. HTML, for example, does not even support page numbers. There aren't any HTML tags for page numbers.. That's because HTML is designed to be rendered in a browser. There are no page numbers in a browser. The LISTING destination does not use a proportional spaced font. In a fixed pitch font, like SAS Monospace or Courier, the letter 'i' takes up the same amount of space as the letter 'w'; while in a proportional spaced font, this is not true. Consider this:&lt;/P&gt;&lt;P&gt;Courier 10 pt:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 10pt;"&gt;iiiiiiiiiiiiiiiiiiii&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 10pt;"&gt;wwwwwwwwwwwwwwwwwwww&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Arial 10 pt:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;iiiiiiiiiiiiiiiiiiii&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;wwwwwwwwwwwwwwwwwwww&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; This &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;is&lt;/STRONG&gt;&lt;/SPAN&gt; the fundamental difference between LISTING and the other destinations. From this fundamental difference, all other differences follow. WIDTH=, for example in LISTING, absolutely determines the width of a cell in the output. So in PROC REPORT, you can have WIDTH=10 and the space allocated will be -exactly- 10 print positions in the LISTING output. However WIDTH=10 has no meaning in a proportion spaced font..what does WIDTH=10 mean -- 10 positions in the size of the letter 'w' or 10 positions the size of the letter 'i'? RTF is *NOT* the LISTING destination; PDF is *NOT* the LISTING destination; HTML is *NOT* the LISTING destination. You cannot expect these destinations to act like the LISTING destination. So, the way to change cell width, for example, for RTF, PDF and HTML is to use a STYLE= override and when you specify units of measure with ODS, you use pixels, inches or centimeters, NOT print positions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I do not know the inner workings of PROC REPORT well enough to be able to comment on why the PAGE option works with ID statement the way it does for this example. The bottom line is that I never assume that just because something "works" in the LISTING destination, that it will work in other ODS destinations. I always test my code in LISTING and HTML or LISTING and all 3 of the major destinations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 22 Dec 2013 04:29:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-use-proc-report-efficiently/m-p/178717#M45635</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2013-12-22T04:29:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to use proc report efficiently?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-use-proc-report-efficiently/m-p/178718#M45636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a ton Cynthia for a wonderful explanation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I now understood clearly the difference between listing and other.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 22 Dec 2013 05:39:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-use-proc-report-efficiently/m-p/178718#M45636</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2013-12-22T05:39:47Z</dc:date>
    </item>
  </channel>
</rss>

