<?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: Interesting Report Question in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Interesting-Report-Question/m-p/296023#M16778</link>
    <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; You haven't posted any code or any data so it's hard to envision how you're using ODS LAYOUT and ODS REGION to do this.&amp;nbsp; #BYVAR and #BYVAL are designed to work in a SAS title only. So there are not many other places where you can use those tokens. They are treated as text every place else.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; In your original post, you showed the BY group tables one under the other, as though each one was on a separate page. If you are using PDF, you can frequently get small tables placed side by side merely by using COLUMNS=2, as shown here: &lt;A href="https://communities.sas.com/t5/SAS-Procedures/Show-additional-information-in-tabular-cells/td-p/293086" target="_blank"&gt;https://communities.sas.com/t5/SAS-Procedures/Show-additional-information-in-tabular-cells/td-p/293086&lt;/A&gt; scroll down to the post that shows 2 tables side by side created with PROC REPORT.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;cynthia&lt;/P&gt;</description>
    <pubDate>Fri, 02 Sep 2016 00:47:46 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2016-09-02T00:47:46Z</dc:date>
    <item>
      <title>Interesting Report Question</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Interesting-Report-Question/m-p/294989#M16724</link>
      <description>&lt;P&gt;Have an interesting SAS Question and if it can be done in proc report . The input dataset looks like this :&lt;/P&gt;
&lt;TABLE width="392"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="64"&gt;name&lt;/TD&gt;
&lt;TD width="64"&gt;col1&amp;nbsp;&lt;/TD&gt;
&lt;TD width="64"&gt;percent1&lt;/TD&gt;
&lt;TD width="99"&gt;col2&amp;nbsp;&lt;/TD&gt;
&lt;TD width="101"&gt;percent2&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;abc&lt;/TD&gt;
&lt;TD&gt;45&lt;/TD&gt;
&lt;TD&gt;0.12&lt;/TD&gt;
&lt;TD&gt;56&lt;/TD&gt;
&lt;TD&gt;0.32&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;def&lt;/TD&gt;
&lt;TD&gt;34&lt;/TD&gt;
&lt;TD&gt;0.25&lt;/TD&gt;
&lt;TD&gt;45&lt;/TD&gt;
&lt;TD&gt;0.80&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Output report needed on a pdf &amp;nbsp;document with the name variable as by variable on separate pages &amp;nbsp;like this : used byvalue() option on the title but columns are not getting transposed to desired format. Any help is highly appreciated. thanks in advance&lt;/P&gt;
&lt;TABLE width="392"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD colspan="2" width="163"&gt;title &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="101"&gt;byname - abc&lt;/TD&gt;
&lt;TD width="64"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="64"&gt;page1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;column_header&lt;/TD&gt;
&lt;TD&gt;percent_header&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;col1&lt;/TD&gt;
&lt;TD&gt;45&lt;/TD&gt;
&lt;TD&gt;12%&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;col2&lt;/TD&gt;
&lt;TD&gt;56&lt;/TD&gt;
&lt;TD&gt;25%&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE width="392"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD colspan="2" width="163"&gt;title &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="101"&gt;byname - def&lt;/TD&gt;
&lt;TD width="64"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="64"&gt;page2&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;column_header&lt;/TD&gt;
&lt;TD&gt;percent_header&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;col1&lt;/TD&gt;
&lt;TD&gt;34&lt;/TD&gt;
&lt;TD&gt;25%&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;col2&lt;/TD&gt;
&lt;TD&gt;45&lt;/TD&gt;
&lt;TD&gt;80%&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Basically I am trying to align columns as rows with description.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2016 22:10:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Interesting-Report-Question/m-p/294989#M16724</guid>
      <dc:creator>Arora_S</dc:creator>
      <dc:date>2016-08-29T22:10:45Z</dc:date>
    </item>
    <item>
      <title>SAS Interesting Report Problem</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Interesting-Report-Question/m-p/294987#M16727</link>
      <description>&lt;P&gt;Have an interesting SAS Question and if it can be done in proc report . The input dataset looks like this :&lt;/P&gt;
&lt;TABLE width="392"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="64"&gt;name&lt;/TD&gt;
&lt;TD width="64"&gt;col1&amp;nbsp;&lt;/TD&gt;
&lt;TD width="64"&gt;percent1&lt;/TD&gt;
&lt;TD width="99"&gt;col2&amp;nbsp;&lt;/TD&gt;
&lt;TD width="101"&gt;percent2&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;abc&lt;/TD&gt;
&lt;TD&gt;45&lt;/TD&gt;
&lt;TD&gt;0.12&lt;/TD&gt;
&lt;TD&gt;56&lt;/TD&gt;
&lt;TD&gt;0.32&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;def&lt;/TD&gt;
&lt;TD&gt;34&lt;/TD&gt;
&lt;TD&gt;0.25&lt;/TD&gt;
&lt;TD&gt;45&lt;/TD&gt;
&lt;TD&gt;0.80&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Output report needed on a pdf &amp;nbsp;document with the name variable as by variable on separate pages &amp;nbsp;like this : used byvalue() option on the title but columns are not getting transposed to desired format. Any help is highly appreciated. thanks in advance&lt;/P&gt;
&lt;TABLE width="392"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD colspan="2" width="163"&gt;title &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="101"&gt;byname - abc&lt;/TD&gt;
&lt;TD width="64"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="64"&gt;page1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;column_header&lt;/TD&gt;
&lt;TD&gt;percent_header&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;col1&lt;/TD&gt;
&lt;TD&gt;45&lt;/TD&gt;
&lt;TD&gt;12%&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;col2&lt;/TD&gt;
&lt;TD&gt;56&lt;/TD&gt;
&lt;TD&gt;25%&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE width="392"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD colspan="2" width="163"&gt;title &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="101"&gt;byname - def&lt;/TD&gt;
&lt;TD width="64"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="64"&gt;page2&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;column_header&lt;/TD&gt;
&lt;TD&gt;percent_header&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;col1&lt;/TD&gt;
&lt;TD&gt;34&lt;/TD&gt;
&lt;TD&gt;25%&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;col2&lt;/TD&gt;
&lt;TD&gt;45&lt;/TD&gt;
&lt;TD&gt;80%&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Basically I am trying to align columns as rows with description.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2016 22:08:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Interesting-Report-Question/m-p/294987#M16727</guid>
      <dc:creator>Arora_S</dc:creator>
      <dc:date>2016-08-29T22:08:01Z</dc:date>
    </item>
    <item>
      <title>Re: Interesting Report Question</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Interesting-Report-Question/m-p/295013#M16726</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; By default, PROC REPORT will not "stack" variables as you envision. You would have to restructure the data to use PROC REPORT. Then, you can either use BY group processing or COMPUTE BEFORE _PAGE_ to get the type of header you want. I show the NAME variable column on my screen shot just so you can see how it is used. But if you did not want to see name, you could always use NOPRINT on the DEFINE statement for NAME.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;cynthia&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/4763iEA8117594ABC7D9D/image-size/original?v=v2&amp;amp;px=-1" alt="restructure_for_report.png" title="restructure_for_report.png" border="0" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2016 00:18:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Interesting-Report-Question/m-p/295013#M16726</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2016-08-30T00:18:08Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Interesting Report Problem</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Interesting-Report-Question/m-p/295014#M16728</link>
      <description>Hi:&lt;BR /&gt;  You only need to post this one time, to prevent multiple people from working on the same question in different forums.&lt;BR /&gt;  One suggestion is already posted here:&lt;BR /&gt;&lt;A href="https://communities.sas.com/t5/ODS-and-Base-Reporting/Interesting-Report-Question/m-p/294989" target="_blank"&gt;https://communities.sas.com/t5/ODS-and-Base-Reporting/Interesting-Report-Question/m-p/294989&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;cynthia</description>
      <pubDate>Tue, 30 Aug 2016 00:19:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Interesting-Report-Question/m-p/295014#M16728</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2016-08-30T00:19:59Z</dc:date>
    </item>
    <item>
      <title>Re: Interesting Report Question</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Interesting-Report-Question/m-p/295239#M16740</link>
      <description>I am trying to use ods layout with  ods region as a way to show the output instead of title approach. However not sure if we can use byvar/byval option as in title for proc report .secondly how can we print the output side by side on a same page .</description>
      <pubDate>Tue, 30 Aug 2016 16:12:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Interesting-Report-Question/m-p/295239#M16740</guid>
      <dc:creator>Arora_S</dc:creator>
      <dc:date>2016-08-30T16:12:48Z</dc:date>
    </item>
    <item>
      <title>Re: Interesting Report Question</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Interesting-Report-Question/m-p/296023#M16778</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; You haven't posted any code or any data so it's hard to envision how you're using ODS LAYOUT and ODS REGION to do this.&amp;nbsp; #BYVAR and #BYVAL are designed to work in a SAS title only. So there are not many other places where you can use those tokens. They are treated as text every place else.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; In your original post, you showed the BY group tables one under the other, as though each one was on a separate page. If you are using PDF, you can frequently get small tables placed side by side merely by using COLUMNS=2, as shown here: &lt;A href="https://communities.sas.com/t5/SAS-Procedures/Show-additional-information-in-tabular-cells/td-p/293086" target="_blank"&gt;https://communities.sas.com/t5/SAS-Procedures/Show-additional-information-in-tabular-cells/td-p/293086&lt;/A&gt; scroll down to the post that shows 2 tables side by side created with PROC REPORT.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;cynthia&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2016 00:47:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Interesting-Report-Question/m-p/296023#M16778</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2016-09-02T00:47:46Z</dc:date>
    </item>
  </channel>
</rss>

