<?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: PROC REPORT  control which columns are on which page in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/PROC-REPORT-control-which-columns-are-on-which-page/m-p/834168#M329811</link>
    <description>&lt;P&gt;Thank you very much. I thought I knew PROC REPORT decently well but had not heard of this option and I have now researched it and it looks like it will solve my problem. Have a great night!&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 19 Sep 2022 20:06:36 GMT</pubDate>
    <dc:creator>tarheel13</dc:creator>
    <dc:date>2022-09-19T20:06:36Z</dc:date>
    <item>
      <title>PROC REPORT  control which columns are on which page</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-REPORT-control-which-columns-are-on-which-page/m-p/834084#M329764</link>
      <description>&lt;P&gt;Hi, I have 10 treatment groups. I need the first 5 treatment groups on 1 page and the next 5 treatment groups on the next page. Treatment groups are in COLUMNS, not rows. I know how to break the rows by page but I tried adjusting the column widths for treatment columns and it's still not coming out as desired. is adjusting the column width the only way to accomplish this?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2022 13:19:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-REPORT-control-which-columns-are-on-which-page/m-p/834084#M329764</guid>
      <dc:creator>tarheel13</dc:creator>
      <dc:date>2022-09-19T13:19:43Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REPORT  control which columns are on which page</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-REPORT-control-which-columns-are-on-which-page/m-p/834101#M329777</link>
      <description>&lt;P&gt;Please show us your code. Also, please tell us what output destination you are using.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2022 13:49:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-REPORT-control-which-columns-are-on-which-page/m-p/834101#M329777</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-09-19T13:49:26Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REPORT  control which columns are on which page</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-REPORT-control-which-columns-are-on-which-page/m-p/834103#M329779</link>
      <description>&lt;P&gt;I am using RTF output. Treatment columns are _1-_9 and _99 is overall column. I would like _1-5 on first page and _6-_9 and _99 on second page. same rows for both pages. &amp;amp;tmax is just a macro variable for how many treatment groups there are; in this case, there are 10. So that do loop is setting the column width the same for all treatment columns. p was a paging variable and judging from my RTF file, there are paging issues as well.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt; proc report data=final1 headline nowd spacing=2 center headskip split='#' formchar(2)='_' missing 
                  out=&amp;amp;ov_out.(where=(_break_='')) style(report)=[outputwidth=100.0%] style(column)=[just=c];

        column (p  order order1 text0 text1 _1 ("&amp;amp;esc.S={borderbottomcolor=black borderbottomwidth=2} NS101" _2 _3 _4 _5 _6 _7 _8 _9 _99));

        define p           / order noprint; 
        define order         / order order=internal noprint;
        define order1      / order order=internal noprint;
    
        define text0       / order id  display 'Category' style(column)= [cellwidth=1.2in  just=l asis=on] style(header)=[just=l asis=on];

        define text1       / order id  display 'Statistic' style(column)= [cellwidth=0.6in  just=l asis=on /*borderleftcolor=black borderleftwidth=1*/] style(header)=[just=l asis=on /*borderleftcolor=black borderleftwidth=1*/];

        %do i=1 %to &amp;amp;tmax.;
          define %scan(&amp;amp;trtstr_n.,&amp;amp;i.)  / display   "&amp;amp;&amp;amp;trt_c&amp;amp;i." style(column)=[cellwidth=1in just=c];
        %end;
      
        break after p      / page;
        %report_headskip(p);
		%report_skip(after,order);
        %footnotes;
      run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2022 13:54:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-REPORT-control-which-columns-are-on-which-page/m-p/834103#M329779</guid>
      <dc:creator>tarheel13</dc:creator>
      <dc:date>2022-09-19T13:54:44Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REPORT  control which columns are on which page</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-REPORT-control-which-columns-are-on-which-page/m-p/834105#M329781</link>
      <description>&lt;P&gt;The only way I can think of getting some columns on one page and other columns on another page is to perform PROC REPORT on Columns 1 through 5, and then another PROC REPORT on columns 6-10 and 99.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I also would recommend you use the ACROSS capability in PROC REPORT rather than rather meaningless columns names like _1 which you then have to assign a label to via a macro variable.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2022 14:03:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-REPORT-control-which-columns-are-on-which-page/m-p/834105#M329781</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-09-19T14:03:04Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REPORT  control which columns are on which page</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-REPORT-control-which-columns-are-on-which-page/m-p/834106#M329782</link>
      <description>&lt;P&gt;_1-_10 are not meaningless. There is a macro that attributes them appropriately and they do not have to be labeled since the macro did that part. I did not include full program only the proc report portion. running proc report twice might work.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2022 14:10:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-REPORT-control-which-columns-are-on-which-page/m-p/834106#M329782</guid>
      <dc:creator>tarheel13</dc:creator>
      <dc:date>2022-09-19T14:10:37Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REPORT  control which columns are on which page</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-REPORT-control-which-columns-are-on-which-page/m-p/834108#M329784</link>
      <description>&lt;P&gt;Sorry, I should not have used the word "meaningless", that was my mistake, as obviously you know what each column means and have a macro variable to put meaningful text into the report.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;What I was trying to advise what that going through the effort of creating columns named _1 to _10 and _99 and having macro variables to label the columns simply isn't necessary if you use the ACROSS feature in PROC REPORT.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2022 14:15:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-REPORT-control-which-columns-are-on-which-page/m-p/834108#M329784</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-09-19T14:15:03Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REPORT  control which columns are on which page</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-REPORT-control-which-columns-are-on-which-page/m-p/834120#M329785</link>
      <description>&lt;P&gt;Lookup at the documentation for the PAGE option on the DEFINE statement.&amp;nbsp; I think that is what you are looking for.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2022 15:35:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-REPORT-control-which-columns-are-on-which-page/m-p/834120#M329785</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2022-09-19T15:35:26Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REPORT  control which columns are on which page</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-REPORT-control-which-columns-are-on-which-page/m-p/834168#M329811</link>
      <description>&lt;P&gt;Thank you very much. I thought I knew PROC REPORT decently well but had not heard of this option and I have now researched it and it looks like it will solve my problem. Have a great night!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2022 20:06:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-REPORT-control-which-columns-are-on-which-page/m-p/834168#M329811</guid>
      <dc:creator>tarheel13</dc:creator>
      <dc:date>2022-09-19T20:06:36Z</dc:date>
    </item>
  </channel>
</rss>

