<?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 Problem in different layout of report in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Problem-in-different-layout-of-report/m-p/4605#M1476</link>
    <description>Hi&lt;BR /&gt;
&lt;BR /&gt;
How can I display report where i have two values 'Number of Invoices Received'&lt;BR /&gt;
and 'Number of Invoices Autopass' in a datasets with only these columns in the datasets.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Report Output&lt;BR /&gt;
&lt;BR /&gt;
Report header&lt;BR /&gt;
&lt;BR /&gt;
Number of Invoices Received  : 800&lt;BR /&gt;
Number of Invoices Autopass :1000&lt;BR /&gt;
&lt;BR /&gt;
Report footer&lt;BR /&gt;
&lt;BR /&gt;
Which type of task or which type of Proc will give me the above output.

Message was edited by: Sunil Gandhi</description>
    <pubDate>Sat, 08 Sep 2007 09:02:06 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2007-09-08T09:02:06Z</dc:date>
    <item>
      <title>Problem in different layout of report</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Problem-in-different-layout-of-report/m-p/4605#M1476</link>
      <description>Hi&lt;BR /&gt;
&lt;BR /&gt;
How can I display report where i have two values 'Number of Invoices Received'&lt;BR /&gt;
and 'Number of Invoices Autopass' in a datasets with only these columns in the datasets.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Report Output&lt;BR /&gt;
&lt;BR /&gt;
Report header&lt;BR /&gt;
&lt;BR /&gt;
Number of Invoices Received  : 800&lt;BR /&gt;
Number of Invoices Autopass :1000&lt;BR /&gt;
&lt;BR /&gt;
Report footer&lt;BR /&gt;
&lt;BR /&gt;
Which type of task or which type of Proc will give me the above output.

Message was edited by: Sunil Gandhi</description>
      <pubDate>Sat, 08 Sep 2007 09:02:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Problem-in-different-layout-of-report/m-p/4605#M1476</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2007-09-08T09:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in different layout of report</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Problem-in-different-layout-of-report/m-p/4606#M1477</link>
      <description>Hi:&lt;BR /&gt;
Assuming that your data looks like this with only 2 columns and 1 row:&lt;BR /&gt;
[pre]&lt;BR /&gt;
 Obs  numrec    numauto&lt;BR /&gt;
  1      800       1000&lt;BR /&gt;
[/pre]&lt;BR /&gt;
  Then you could use PROC TRANSPOSE on your data:&lt;BR /&gt;
[pre]&lt;BR /&gt;
proc transpose data=twocols out=trans;&lt;BR /&gt;
label numrec = "Number of Invoices Received"&lt;BR /&gt;
      numauto = "Number of Invoices Autopass";&lt;BR /&gt;
format numrec numauto comma6.;&lt;BR /&gt;
run;&lt;BR /&gt;
     &lt;BR /&gt;
ods listing;&lt;BR /&gt;
ods html file='show_trans.html' style=egdefault;&lt;BR /&gt;
  &lt;BR /&gt;
proc print data=trans;&lt;BR /&gt;
title 'Transposed Report "Header" ';&lt;BR /&gt;
footnote 'Transposed Report "Footer" ';&lt;BR /&gt;
var _NAME_ _LABEL_ COL1;&lt;BR /&gt;
run;&lt;BR /&gt;
  &lt;BR /&gt;
ods _all_ close;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
And then the output from the above PROC PRINT would look like this:&lt;BR /&gt;
[pre]&lt;BR /&gt;
                 Transposed Report "Header"&lt;BR /&gt;
          &lt;BR /&gt;
   Obs    _NAME_               _LABEL_                COL1&lt;BR /&gt;
    1     numrec     Number of Invoices Received       800&lt;BR /&gt;
    2     numauto    Number of Invoices Autopass     1,000&lt;BR /&gt;
   &lt;BR /&gt;
   &lt;BR /&gt;
   &lt;BR /&gt;
   &lt;BR /&gt;
  &lt;BR /&gt;
   &lt;BR /&gt;
                  Transposed Report "Footer"&lt;BR /&gt;
   &lt;BR /&gt;
[/pre]&lt;BR /&gt;
Enterprise Guide does have a TRANSPOSE task, you could use that to transpose the data before the PROC PRINT or LIST Data task. And, of course, you could only use _LABEL_ and COL1 in the PROC PRINT or LIST Data task to get closer to the report you want.&lt;BR /&gt;
  &lt;BR /&gt;
There are two other alternative that don't use PROC TRANSPOSE. One involves using PROC TABULATE (Summary Table Task) and the other involves using a DATA step program to write the report to FILE PRINT ODS.&lt;BR /&gt;
   &lt;BR /&gt;
cynthia</description>
      <pubDate>Sat, 08 Sep 2007 15:38:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Problem-in-different-layout-of-report/m-p/4606#M1477</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2007-09-08T15:38:59Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in different layout of report</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Problem-in-different-layout-of-report/m-p/4607#M1478</link>
      <description>Thanx a million,&lt;BR /&gt;
But I dont want to display the column header i.e. want to suppress column header&lt;BR /&gt;
for example:-&lt;BR /&gt;
In your above output you are getting this &lt;BR /&gt;
Obs    _NAME_               _LABEL_                COL1&lt;BR /&gt;
How to suppress this?</description>
      <pubDate>Sun, 09 Sep 2007 10:28:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Problem-in-different-layout-of-report/m-p/4607#M1478</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2007-09-09T10:28:01Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in different layout of report</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Problem-in-different-layout-of-report/m-p/4608#M1479</link>
      <description>Hi:&lt;BR /&gt;
  In that case, on of your choices is to move to a code node and use a PROC REPORT step with the NOHEADER option on the transposed data set:&lt;BR /&gt;
[pre]&lt;BR /&gt;
proc report data=trans nowd noheader;&lt;BR /&gt;
title 'PROC REPORT: Transposed Report "Header"';&lt;BR /&gt;
footnote 'Transposed Report "Footer"';&lt;BR /&gt;
column _LABEL_ COL1;&lt;BR /&gt;
run;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
 &lt;BR /&gt;
The other choices involve using a DATA step program.&lt;BR /&gt;
cynthia</description>
      <pubDate>Sun, 09 Sep 2007 14:53:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Problem-in-different-layout-of-report/m-p/4608#M1479</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2007-09-09T14:53:39Z</dc:date>
    </item>
  </channel>
</rss>

