<?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 selected columns int the proc report in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/display-selected-columns-int-the-proc-report/m-p/34550#M4999</link>
    <description>Hi.&lt;BR /&gt;
Maybe you can give the NOCOMPLETEROWS option a try. It asks Report to display columns corresponding to real combinations seen in the dataset.&lt;BR /&gt;
Otherwise you can use the Tabulate procedure.&lt;BR /&gt;
[pre]&lt;BR /&gt;
DATA work.test ;&lt;BR /&gt;
INPUT A $ B $ C ;&lt;BR /&gt;
CARDS ;&lt;BR /&gt;
Xx x1 4&lt;BR /&gt;
Xx x2 5&lt;BR /&gt;
Yy x1 3&lt;BR /&gt;
Yy x2 5&lt;BR /&gt;
Yy x3 7&lt;BR /&gt;
Yy x4 6&lt;BR /&gt;
;&lt;BR /&gt;
RUN ;&lt;BR /&gt;
PROC REPORT DATA = work.test NOWD NOCOMPLETECOLS ;&lt;BR /&gt;
	COLUMNS a,(b,c) ;&lt;BR /&gt;
	DEFINE a / ACROSS ;&lt;BR /&gt;
	DEFINE b / ACROSS ;&lt;BR /&gt;
	DEFINE c / MEAN FORMAT=8. ;&lt;BR /&gt;
RUN ;&lt;BR /&gt;
PROC TABULATE DATA = work.test F=8. ;&lt;BR /&gt;
	CLASS a b ;&lt;BR /&gt;
	VAR c ;&lt;BR /&gt;
	TABLE a="" * b="" * c="" * MEAN="" ;&lt;BR /&gt;
RUN ;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
Regards,&lt;BR /&gt;
Olivier</description>
    <pubDate>Mon, 28 Jul 2008 12:14:20 GMT</pubDate>
    <dc:creator>Olivier</dc:creator>
    <dc:date>2008-07-28T12:14:20Z</dc:date>
    <item>
      <title>display selected columns int the proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/display-selected-columns-int-the-proc-report/m-p/34549#M4998</link>
      <description>A	B	C&lt;BR /&gt;
Xx	x1	4&lt;BR /&gt;
Xx	x2	5&lt;BR /&gt;
Yy	x1	3&lt;BR /&gt;
Yy	x2	5&lt;BR /&gt;
Yy	x3	7&lt;BR /&gt;
Yy	x4	6&lt;BR /&gt;
I have above data, what I want is to create a report like&lt;BR /&gt;
       XX	                        YY&lt;BR /&gt;
x1      x2             x1     x2    x3    x4&lt;BR /&gt;
4        5               3      5      7      6&lt;BR /&gt;
I am using  the variables A and B as analysis variables in proc report. But giving an output as below&lt;BR /&gt;
       XX	                                         YY&lt;BR /&gt;
x1      x2     x3    x4                 x1     x2    x3    x4&lt;BR /&gt;
But I don’t want the columns x3, x4 to be displayed under XX.&lt;BR /&gt;
Please help me in getting the above output&lt;BR /&gt;
if it is not possible with proc report then please suggest me alternatives.</description>
      <pubDate>Mon, 28 Jul 2008 09:36:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/display-selected-columns-int-the-proc-report/m-p/34549#M4998</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-07-28T09:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: display selected columns int the proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/display-selected-columns-int-the-proc-report/m-p/34550#M4999</link>
      <description>Hi.&lt;BR /&gt;
Maybe you can give the NOCOMPLETEROWS option a try. It asks Report to display columns corresponding to real combinations seen in the dataset.&lt;BR /&gt;
Otherwise you can use the Tabulate procedure.&lt;BR /&gt;
[pre]&lt;BR /&gt;
DATA work.test ;&lt;BR /&gt;
INPUT A $ B $ C ;&lt;BR /&gt;
CARDS ;&lt;BR /&gt;
Xx x1 4&lt;BR /&gt;
Xx x2 5&lt;BR /&gt;
Yy x1 3&lt;BR /&gt;
Yy x2 5&lt;BR /&gt;
Yy x3 7&lt;BR /&gt;
Yy x4 6&lt;BR /&gt;
;&lt;BR /&gt;
RUN ;&lt;BR /&gt;
PROC REPORT DATA = work.test NOWD NOCOMPLETECOLS ;&lt;BR /&gt;
	COLUMNS a,(b,c) ;&lt;BR /&gt;
	DEFINE a / ACROSS ;&lt;BR /&gt;
	DEFINE b / ACROSS ;&lt;BR /&gt;
	DEFINE c / MEAN FORMAT=8. ;&lt;BR /&gt;
RUN ;&lt;BR /&gt;
PROC TABULATE DATA = work.test F=8. ;&lt;BR /&gt;
	CLASS a b ;&lt;BR /&gt;
	VAR c ;&lt;BR /&gt;
	TABLE a="" * b="" * c="" * MEAN="" ;&lt;BR /&gt;
RUN ;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
Regards,&lt;BR /&gt;
Olivier</description>
      <pubDate>Mon, 28 Jul 2008 12:14:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/display-selected-columns-int-the-proc-report/m-p/34550#M4999</guid>
      <dc:creator>Olivier</dc:creator>
      <dc:date>2008-07-28T12:14:20Z</dc:date>
    </item>
  </channel>
</rss>

