<?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: Trouble with Columns using PROC REPORT in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Trouble-with-Columns-using-PROC-REPORT/m-p/70073#M20169</link>
    <description>Hi:&lt;BR /&gt;
  First of all, PROC REPORT will not append your two data sets together. For PROC REPORT, it's one data set in and a report comes out. PROC REPORT will not do any "reading in" of multiple data sets. You'll have to do that with a DATA STEP program, PROC APPEND or PROC SQL.&lt;BR /&gt;
 &lt;BR /&gt;
  However, what you want after the data sets are together, you could do with either PROC REPORT or PROC TABULATE. If you use PROC REPORT, then your DATE would be an ACROSS usage nested with ALLOC (DATE,ALLOC) and if you use PROC TABULATE, then DATE would be crossed with ALLOC (DATE*ALLOC)  in the COLUMN dimension. Whether you use REPORT or TABULATE really depends on what other processing, if any, you need to do on your report. Grand Totals?? Sub Totals??? Calculated items??&lt;BR /&gt;
 &lt;BR /&gt;
  A good place to start would be to look at some examples of PROC REPORT and PROC TABULATE in the documentation. There are a lot of examples to learn from. In addition, there have been many, many user group papers and forum postings on the topic of PROC REPORT and PROC TABULATE. Using all of those resources should give you some good code samples and some ideas of whether REPORT or TABULATE is the right choice.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
    <pubDate>Tue, 08 Sep 2009 15:29:53 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2009-09-08T15:29:53Z</dc:date>
    <item>
      <title>Trouble with Columns using PROC REPORT</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Trouble-with-Columns-using-PROC-REPORT/m-p/70071#M20167</link>
      <description>Hi everyone; I'm a SAS rookie. I am using BASE SAS 9.2 and I've run into a problem. I have two mainframe data sets that I am trying read in and manipulate the data via columns. Would anyone know a simple way to use PROC REPORT or another method to manipulate the below data so that it shows the below&lt;BR /&gt;
&lt;BR /&gt;
STORNAME ALLOC   ALLOC&lt;BR /&gt;
                    SEP09   DEC08&lt;BR /&gt;
DATADB2      10.37      9.30     &lt;BR /&gt;
 &lt;BR /&gt;
&lt;BR /&gt;
&lt;U&gt;INPUT DATA&lt;/U&gt; &lt;BR /&gt;
&lt;BR /&gt;
STORNAME   ALLOC   DATE&lt;BR /&gt;
DATADB2    10.37  SEP09&lt;BR /&gt;
DATAIMS     2.07  SEP09&lt;BR /&gt;
EPOL       14.13  SEP09&lt;BR /&gt;
FC DASD    50.46  SEP09&lt;BR /&gt;
G1         23.87  SEP09&lt;BR /&gt;
G2          4.31  SEP09&lt;BR /&gt;
G3         33.08  SEP09&lt;BR /&gt;
OBJDATA     2.11  SEP09&lt;BR /&gt;
SYSTEMS     2.32  SEP09&lt;BR /&gt;
XTVOLS      0.26  SEP09&lt;BR /&gt;
&lt;BR /&gt;
STORNAME   ALLOC   DATE&lt;BR /&gt;
DATADB2     9.30  DEC08&lt;BR /&gt;
DATAIMS     2.20  DEC08&lt;BR /&gt;
EPOL       27.50  DEC08&lt;BR /&gt;
FC DASD    25.90  DEC08&lt;BR /&gt;
G1         20.30  DEC08&lt;BR /&gt;
G2          3.50  DEC08&lt;BR /&gt;
G3         31.30  DEC08&lt;BR /&gt;
OBJDATA     2.00  DEC08&lt;BR /&gt;
SYSTEMS     4.40  DEC08&lt;BR /&gt;
XTVOLS      0.26  DEC08</description>
      <pubDate>Tue, 08 Sep 2009 13:29:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Trouble-with-Columns-using-PROC-REPORT/m-p/70071#M20167</guid>
      <dc:creator>Nooby1Konoby</dc:creator>
      <dc:date>2009-09-08T13:29:38Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with Columns using PROC REPORT</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Trouble-with-Columns-using-PROC-REPORT/m-p/70072#M20168</link>
      <description>SAS PROC REPORT with the GROUP and ACROSS options can create the report you demonstrated.&lt;BR /&gt;
&lt;BR /&gt;
The Google advanced search argument will generate some matches, providing you SAS-hosted documentation and supplemental technical/conference references:&lt;BR /&gt;
&lt;BR /&gt;
proc report group across site:sas.com&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Tue, 08 Sep 2009 15:27:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Trouble-with-Columns-using-PROC-REPORT/m-p/70072#M20168</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-09-08T15:27:00Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with Columns using PROC REPORT</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Trouble-with-Columns-using-PROC-REPORT/m-p/70073#M20169</link>
      <description>Hi:&lt;BR /&gt;
  First of all, PROC REPORT will not append your two data sets together. For PROC REPORT, it's one data set in and a report comes out. PROC REPORT will not do any "reading in" of multiple data sets. You'll have to do that with a DATA STEP program, PROC APPEND or PROC SQL.&lt;BR /&gt;
 &lt;BR /&gt;
  However, what you want after the data sets are together, you could do with either PROC REPORT or PROC TABULATE. If you use PROC REPORT, then your DATE would be an ACROSS usage nested with ALLOC (DATE,ALLOC) and if you use PROC TABULATE, then DATE would be crossed with ALLOC (DATE*ALLOC)  in the COLUMN dimension. Whether you use REPORT or TABULATE really depends on what other processing, if any, you need to do on your report. Grand Totals?? Sub Totals??? Calculated items??&lt;BR /&gt;
 &lt;BR /&gt;
  A good place to start would be to look at some examples of PROC REPORT and PROC TABULATE in the documentation. There are a lot of examples to learn from. In addition, there have been many, many user group papers and forum postings on the topic of PROC REPORT and PROC TABULATE. Using all of those resources should give you some good code samples and some ideas of whether REPORT or TABULATE is the right choice.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Tue, 08 Sep 2009 15:29:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Trouble-with-Columns-using-PROC-REPORT/m-p/70073#M20169</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2009-09-08T15:29:53Z</dc:date>
    </item>
  </channel>
</rss>

