<?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: ods output in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/ods-output/m-p/351498#M81807</link>
    <description>&lt;P&gt;Yes. It works.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 20 Apr 2017 01:19:26 GMT</pubDate>
    <dc:creator>Niugg2010</dc:creator>
    <dc:date>2017-04-20T01:19:26Z</dc:date>
    <item>
      <title>ods output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ods-output/m-p/349894#M81268</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I want to get below output in one page. I used two "proc report" in one&amp;nbsp;output. How can I modify my code and use one "proc report" to get the same result? Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/8321i8BCA659E4205FA19/image-size/original?v=1.0&amp;amp;px=-1" border="0" alt="1.JPG" title="1.JPG" /&gt;&lt;/P&gt;&lt;P&gt;Below is my code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data a;&lt;BR /&gt;format patid x1-x10 y1-y10 $8.;&lt;BR /&gt;input patid x1-x10 y1-y10;&lt;BR /&gt;datalines;&lt;BR /&gt;001 a1 a2 a3 a4 a5 a6 a7 a8 a9 a10 b1 b2 b3 b4 b5 b5 b5 b8 b9 b10&lt;BR /&gt;001 a1 a2 a3 a4 a5 a6 a7 a8 a9 a10 b1 b2 b3 b4 b5 b5 b5 b8 b9 b10&lt;BR /&gt;001 a1 a2 a3 a4 a5 a6 a7 a8 a9 a10 b1 b2 b3 b4 b5 b5 b5 b8 b9 b10&lt;BR /&gt;002 aa1 aa2 aa3 aa4 aa5 aa6 aa7 aa8 aa9 aa10 bb1 bb2 bb3 bb4 bb5 bb6 bb7 bb8 bb9 bb10&lt;BR /&gt;002 aa1 aa2 aa3 aa4 aa5 aa6 aa7 aa8 aa9 aa10 bb1 bb2 bb3 bb4 bb5 bb6 bb7 bb8 bb9 bb10&lt;BR /&gt;002 aa1 aa2 aa3 aa4 aa5 aa6 aa7 aa8 aa9 aa10 bb1 bb2 bb3 bb4 bb5 bb6 bb7 bb8 bb9 bb10&lt;BR /&gt;002 aa1 aa2 aa3 aa4 aa5 aa6 aa7 aa8 aa9 aa10 bb1 bb2 bb3 bb4 bb5 bb6 bb7 bb8 bb9 bb10&lt;BR /&gt;002 aa1 aa2 aa3 aa4 aa5 aa6 aa7 aa8 aa9 aa10 bb1 bb2 bb3 bb4 bb5 bb6 bb7 bb8 bb9 bb10&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;ods rtf file="C:\XXXXXX\1.rtf" startpage=no;&lt;BR /&gt;proc report data=a;&lt;BR /&gt;column patid x1-x10;&lt;BR /&gt;define patid / id;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc report data=a;&lt;BR /&gt;column patid y1-y10;&lt;BR /&gt;define patid / id;&lt;BR /&gt;run;&lt;BR /&gt;ods rtf close;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Apr 2017 22:22:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ods-output/m-p/349894#M81268</guid>
      <dc:creator>Niugg2010</dc:creator>
      <dc:date>2017-04-13T22:22:18Z</dc:date>
    </item>
    <item>
      <title>Re: ods output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ods-output/m-p/349896#M81270</link>
      <description>&lt;P&gt;Since proc report is going to want the same columns displayed in all tables then I don't thin one proc report, or tabulate or print for that matter will work with your existing data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could add a group variable to use for BY Group processing and assign the y variables to X variable names.&lt;/P&gt;
&lt;P&gt;Something like this (untested)&lt;/P&gt;
&lt;PRE&gt;data need;
   set a;
   array xval x: ;
   array yval y: ;
   group=1;
   output;
   group=2;
   do i= 1 to dim(x);
      xval[i]=yval[i];
   end;
   output;
   keep group x: ;
run;
proc sort data=need; 
   by group;
run;

proc report data=a;
by group;
column patid x1-x10;
define patid / id;
run;
&lt;/PRE&gt;</description>
      <pubDate>Thu, 13 Apr 2017 22:35:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ods-output/m-p/349896#M81270</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-04-13T22:35:28Z</dc:date>
    </item>
    <item>
      <title>Re: ods output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ods-output/m-p/349916#M81287</link>
      <description>&lt;P&gt;I'm guessing this is because the table is too wide to fit otherwise?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Unfortunately manual control is your best bet to get it to align the way you want.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Apr 2017 00:10:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ods-output/m-p/349916#M81287</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-04-14T00:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: ods output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ods-output/m-p/350679#M81537</link>
      <description>&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2017 00:42:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ods-output/m-p/350679#M81537</guid>
      <dc:creator>Niugg2010</dc:creator>
      <dc:date>2017-04-18T00:42:24Z</dc:date>
    </item>
    <item>
      <title>Re: ods output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ods-output/m-p/350680#M81538</link>
      <description>&lt;P&gt;This seems to work.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods rtf file="C:\downloads\2.rtf" startpage=no;

proc report data=a;
  column patid x1-x10 patid=patid2 y1-y10;
  define patid2 / page ;
run;

ods rtf close;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 18 Apr 2017 01:09:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ods-output/m-p/350680#M81538</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2017-04-18T01:09:48Z</dc:date>
    </item>
    <item>
      <title>Re: ods output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ods-output/m-p/350712#M81553</link>
      <description>The ODS LAYOUT has matured quite a bit and gives you some additional flexibility to put multiple output objects on a single page.</description>
      <pubDate>Tue, 18 Apr 2017 05:40:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ods-output/m-p/350712#M81553</guid>
      <dc:creator>ArtC</dc:creator>
      <dc:date>2017-04-18T05:40:56Z</dc:date>
    </item>
    <item>
      <title>Re: ods output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ods-output/m-p/351498#M81807</link>
      <description>&lt;P&gt;Yes. It works.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2017 01:19:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ods-output/m-p/351498#M81807</guid>
      <dc:creator>Niugg2010</dc:creator>
      <dc:date>2017-04-20T01:19:26Z</dc:date>
    </item>
  </channel>
</rss>

