<?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: Help with output, please. in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Help-with-output-please/m-p/28436#M4413</link>
    <description>Hi:&lt;BR /&gt;
  If your data were called WORK.YRDATA and your variables were actually named:&lt;BR /&gt;
COUNTY, YEAR, E, P and PCTVAL (since % is an invalid variable name)&lt;BR /&gt;
 &lt;BR /&gt;
then you could generate the desired report with PROC REPORT. (I put an RBREAK statement, but if you don't want report totals, then you can simply delete that statement.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia&lt;BR /&gt;
          &lt;BR /&gt;
[pre]&lt;BR /&gt;
ods html file='c:\temp\across_examp.html' style=sasweb;&lt;BR /&gt;
              &lt;BR /&gt;
  proc report data=yrdata nowd;&lt;BR /&gt;
    column county year,(e p pctval);&lt;BR /&gt;
    define county / group 'County';&lt;BR /&gt;
    define year / across 'Year';&lt;BR /&gt;
    define e / 'E';&lt;BR /&gt;
    define p / 'P';&lt;BR /&gt;
    define pctval / '%' f=3.0;&lt;BR /&gt;
    rbreak after / summarize;&lt;BR /&gt;
  run;&lt;BR /&gt;
ods html close;&lt;BR /&gt;
[/pre]</description>
    <pubDate>Thu, 07 May 2009 00:09:00 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2009-05-07T00:09:00Z</dc:date>
    <item>
      <title>Help with output, please.</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Help-with-output-please/m-p/28435#M4412</link>
      <description>Hi.  I know there has to be a way to do this, but I haven't done a lot of output beyond basic freqs or proc-prints.  Here's what my data looks like:&lt;BR /&gt;
&lt;BR /&gt;
County      Year          E                 P              %&lt;BR /&gt;
01-A	1989	1225	4317	28.376&lt;BR /&gt;
01-A	1990	383	3812	10.047&lt;BR /&gt;
01-A	1991	386	3537	10.913&lt;BR /&gt;
01-A	1992	414	3510	11.795&lt;BR /&gt;
01-A	1993	438	3653	11.99&lt;BR /&gt;
01-A	1994	458	3851	11.893&lt;BR /&gt;
02-B	1989	85	220	38.636&lt;BR /&gt;
02-B	1990	93	252	36.905&lt;BR /&gt;
02-B	1991	92	312	29.487&lt;BR /&gt;
02-B	1992	84	278	30.216&lt;BR /&gt;
02-B	1993	122	189	64.55&lt;BR /&gt;
02-B	1994	81	174	46.552&lt;BR /&gt;
&lt;BR /&gt;
And here is how I need it to output:&lt;BR /&gt;
&lt;BR /&gt;
County            Year &lt;BR /&gt;
                        1989               1990                1991         etc.&lt;BR /&gt;
                     E       P   %      E      P    %     E      P   %   etc.&lt;BR /&gt;
01A             1225 4317 28     383 3812 10     386 3537 10     etc.&lt;BR /&gt;
02B               85    220 38       93  252  36     92    312  29   etc.&lt;BR /&gt;
&lt;BR /&gt;
How can I do it?  Or am I stuck with manipulating it greatly in Excel?&lt;BR /&gt;
&lt;BR /&gt;
Thanks so much.&lt;BR /&gt;
&lt;BR /&gt;
Sign me ~ novice outputter</description>
      <pubDate>Wed, 06 May 2009 21:44:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Help-with-output-please/m-p/28435#M4412</guid>
      <dc:creator>stateworker</dc:creator>
      <dc:date>2009-05-06T21:44:58Z</dc:date>
    </item>
    <item>
      <title>Re: Help with output, please.</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Help-with-output-please/m-p/28436#M4413</link>
      <description>Hi:&lt;BR /&gt;
  If your data were called WORK.YRDATA and your variables were actually named:&lt;BR /&gt;
COUNTY, YEAR, E, P and PCTVAL (since % is an invalid variable name)&lt;BR /&gt;
 &lt;BR /&gt;
then you could generate the desired report with PROC REPORT. (I put an RBREAK statement, but if you don't want report totals, then you can simply delete that statement.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia&lt;BR /&gt;
          &lt;BR /&gt;
[pre]&lt;BR /&gt;
ods html file='c:\temp\across_examp.html' style=sasweb;&lt;BR /&gt;
              &lt;BR /&gt;
  proc report data=yrdata nowd;&lt;BR /&gt;
    column county year,(e p pctval);&lt;BR /&gt;
    define county / group 'County';&lt;BR /&gt;
    define year / across 'Year';&lt;BR /&gt;
    define e / 'E';&lt;BR /&gt;
    define p / 'P';&lt;BR /&gt;
    define pctval / '%' f=3.0;&lt;BR /&gt;
    rbreak after / summarize;&lt;BR /&gt;
  run;&lt;BR /&gt;
ods html close;&lt;BR /&gt;
[/pre]</description>
      <pubDate>Thu, 07 May 2009 00:09:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Help-with-output-please/m-p/28436#M4413</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2009-05-07T00:09:00Z</dc:date>
    </item>
    <item>
      <title>Re: Help with output, please.</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Help-with-output-please/m-p/28437#M4414</link>
      <description>Cynthia - &lt;BR /&gt;
&lt;BR /&gt;
Thanks so much!  It worked beautifully.</description>
      <pubDate>Thu, 07 May 2009 12:24:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Help-with-output-please/m-p/28437#M4414</guid>
      <dc:creator>stateworker</dc:creator>
      <dc:date>2009-05-07T12:24:15Z</dc:date>
    </item>
    <item>
      <title>Re: Help with output, please.</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Help-with-output-please/m-p/28438#M4415</link>
      <description>So I just have to say that I had to do this again and it was great to come back here to refresh!</description>
      <pubDate>Fri, 28 Aug 2009 17:33:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Help-with-output-please/m-p/28438#M4415</guid>
      <dc:creator>stateworker</dc:creator>
      <dc:date>2009-08-28T17:33:30Z</dc:date>
    </item>
  </channel>
</rss>

