<?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 Output singular column as multiple columns on one page in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Output-singular-column-as-multiple-columns-on-one-page/m-p/7666#M2793</link>
    <description>I have a list of IDs only that I am trying to output on one page rather than have one column across multiple pages. What is the best way to do this?</description>
    <pubDate>Tue, 25 Mar 2008 15:45:04 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2008-03-25T15:45:04Z</dc:date>
    <item>
      <title>Output singular column as multiple columns on one page</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Output-singular-column-as-multiple-columns-on-one-page/m-p/7666#M2793</link>
      <description>I have a list of IDs only that I am trying to output on one page rather than have one column across multiple pages. What is the best way to do this?</description>
      <pubDate>Tue, 25 Mar 2008 15:45:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Output-singular-column-as-multiple-columns-on-one-page/m-p/7666#M2793</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-03-25T15:45:04Z</dc:date>
    </item>
    <item>
      <title>Re: Output singular column as multiple columns on one page</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Output-singular-column-as-multiple-columns-on-one-page/m-p/7667#M2794</link>
      <description>are you prepared to have it in listing style result ?  That would be something like [pre]&lt;BR /&gt;
data _null_ ;&lt;BR /&gt;
   file print ;&lt;BR /&gt;
   put 'list of IDs' ;&lt;BR /&gt;
   do while( not end_of_data ) ;&lt;BR /&gt;
      set dataset_of IDs end= end_of_data ;&lt;BR /&gt;
      put id  +2 @@ ;&lt;BR /&gt;
   end;&lt;BR /&gt;
   stop;&lt;BR /&gt;
run;</description>
      <pubDate>Tue, 25 Mar 2008 17:38:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Output-singular-column-as-multiple-columns-on-one-page/m-p/7667#M2794</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-03-25T17:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: Output singular column as multiple columns on one page</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Output-singular-column-as-multiple-columns-on-one-page/m-p/7668#M2795</link>
      <description>Hi:&lt;BR /&gt;
  It really depends on your destination of choice. If you need only the LISTING destination, then you could use PROC REPORT with the PANELS= option:&lt;BR /&gt;
[pre]&lt;BR /&gt;
ods listing;&lt;BR /&gt;
proc report data=mydata nowd panels=3;&lt;BR /&gt;
  title 'Multi Column LISTING';&lt;BR /&gt;
  column id name;&lt;BR /&gt;
  define id / order;&lt;BR /&gt;
run;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
 &lt;BR /&gt;
  But PANELS= is a LISTING only option. If you wanted RTF or PDF, then you could use the COLUMNS= option to get multiple columns of output.&lt;BR /&gt;
[pre]&lt;BR /&gt;
ods pdf file='mult_col.pdf' columns=3;&lt;BR /&gt;
ods rtf file='mult_col.rtf' columns=3 notoc_data;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
  I think that for HTML, you'd have to experiment with the HTMLPANEL tagset template or use a DATA step program. The general outline for an HTMLPANEL program would be:&lt;BR /&gt;
[pre]&lt;BR /&gt;
    &lt;BR /&gt;
options orientation=portrait;&lt;BR /&gt;
%let panelcolumns = 3;&lt;BR /&gt;
ods tagsets.htmlpanel file='mult_col.html' &lt;BR /&gt;
    style=sasweb;&lt;BR /&gt;
     &lt;BR /&gt;
ods tagsets.htmlpanel event=panel(start);&lt;BR /&gt;
** first procedure possibly with WHERE for IDs in first col;&lt;BR /&gt;
  &lt;BR /&gt;
** second procedure with WHERE;&lt;BR /&gt;
  &lt;BR /&gt;
** third procedure with WHERE;&lt;BR /&gt;
ods tagsets.htmlpanel event=panel(finish);&lt;BR /&gt;
  &lt;BR /&gt;
ods _all_ close;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
Or you can have HTMLPANEL work with BY groups, but that means you'd have to set a variable that said which column an ID would go into.&lt;BR /&gt;
 &lt;BR /&gt;
For more information on HTMLPANEL, consult this web site:&lt;BR /&gt;
 &lt;A href="http://support.sas.com/rnd/base/ods/odsmarkup/htmlpanel.html" target="_blank"&gt;http://support.sas.com/rnd/base/ods/odsmarkup/htmlpanel.html&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
cynthia</description>
      <pubDate>Tue, 25 Mar 2008 18:10:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Output-singular-column-as-multiple-columns-on-one-page/m-p/7668#M2795</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2008-03-25T18:10:28Z</dc:date>
    </item>
    <item>
      <title>Re: Output singular column as multiple columns on one page</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Output-singular-column-as-multiple-columns-on-one-page/m-p/7669#M2796</link>
      <description>Thank you both for the info. The column option for the ods pdf is exactly what I was looking for!&lt;BR /&gt;
&lt;BR /&gt;
Scot</description>
      <pubDate>Tue, 25 Mar 2008 19:01:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Output-singular-column-as-multiple-columns-on-one-page/m-p/7669#M2796</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-03-25T19:01:50Z</dc:date>
    </item>
  </channel>
</rss>

