<?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 outputting to Excel with page breaks when the value of a variable changes in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/outputting-to-Excel-with-page-breaks-when-the-value-of-a/m-p/46520#M6080</link>
    <description>Hi.  I've been asked to help someone with an Excel file that they want to have page-breaks put when the value in one of their columns changes.  I was thinking that perhaps we could pop it into SAS and then SAS could work its magic and output something that would meet their needs.&lt;BR /&gt;
&lt;BR /&gt;
Here's a mockup of what they have:&lt;BR /&gt;
&lt;BR /&gt;
valuea	valueb	valuec&lt;BR /&gt;
123	1	abc&lt;BR /&gt;
321	1	dafd&lt;BR /&gt;
432	1	fda&lt;BR /&gt;
adf	2	vdfdas&lt;BR /&gt;
dafda	2	fdafsa&lt;BR /&gt;
fdaf	3	afdafda&lt;BR /&gt;
fdaf	3	fdafda&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
They want a page break when valueb changes.  So a page break between valueb=1 and valueb=2 and between valueb=2 and valueb=3.  The values for this column are character, not numeric, but I don't think that would matter.&lt;BR /&gt;
&lt;BR /&gt;
Any ideas?</description>
    <pubDate>Mon, 25 Jan 2010 18:11:50 GMT</pubDate>
    <dc:creator>stateworker</dc:creator>
    <dc:date>2010-01-25T18:11:50Z</dc:date>
    <item>
      <title>outputting to Excel with page breaks when the value of a variable changes</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/outputting-to-Excel-with-page-breaks-when-the-value-of-a/m-p/46520#M6080</link>
      <description>Hi.  I've been asked to help someone with an Excel file that they want to have page-breaks put when the value in one of their columns changes.  I was thinking that perhaps we could pop it into SAS and then SAS could work its magic and output something that would meet their needs.&lt;BR /&gt;
&lt;BR /&gt;
Here's a mockup of what they have:&lt;BR /&gt;
&lt;BR /&gt;
valuea	valueb	valuec&lt;BR /&gt;
123	1	abc&lt;BR /&gt;
321	1	dafd&lt;BR /&gt;
432	1	fda&lt;BR /&gt;
adf	2	vdfdas&lt;BR /&gt;
dafda	2	fdafsa&lt;BR /&gt;
fdaf	3	afdafda&lt;BR /&gt;
fdaf	3	fdafda&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
They want a page break when valueb changes.  So a page break between valueb=1 and valueb=2 and between valueb=2 and valueb=3.  The values for this column are character, not numeric, but I don't think that would matter.&lt;BR /&gt;
&lt;BR /&gt;
Any ideas?</description>
      <pubDate>Mon, 25 Jan 2010 18:11:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/outputting-to-Excel-with-page-breaks-when-the-value-of-a/m-p/46520#M6080</guid>
      <dc:creator>stateworker</dc:creator>
      <dc:date>2010-01-25T18:11:50Z</dc:date>
    </item>
    <item>
      <title>Re: outputting to Excel with page breaks when the value of a variable changes</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/outputting-to-Excel-with-page-breaks-when-the-value-of-a/m-p/46521#M6081</link>
      <description>A former coworker who is an Excel whiz sent me a link on how to do it in Excel - but I'm still wondering about how we might be able to output with SAS.&lt;BR /&gt;
&lt;BR /&gt;
And in case anyone was interested: &lt;A href="http://www.mrexcel.com/td0032.html" target="_blank"&gt;http://www.mrexcel.com/td0032.html&lt;/A&gt; is where the tip is for Excel.  (hope it's ok to post the link).</description>
      <pubDate>Mon, 25 Jan 2010 19:00:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/outputting-to-Excel-with-page-breaks-when-the-value-of-a/m-p/46521#M6081</guid>
      <dc:creator>stateworker</dc:creator>
      <dc:date>2010-01-25T19:00:36Z</dc:date>
    </item>
    <item>
      <title>Re: outputting to Excel with page breaks when the value of a variable changes</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/outputting-to-Excel-with-page-breaks-when-the-value-of-a/m-p/46522#M6082</link>
      <description>Hi:&lt;BR /&gt;
  I'm not sure what you mean by "page break" since there are several different ways to interpret that. However, if you wanted to start a new worksheet every time VALUEB changed, then you should investigate the SHEET_INTERVAL suboption with TAGSETS.EXCELXP.&lt;BR /&gt;
 &lt;BR /&gt;
  If you want -printing- control over the data in one worksheet, then I believe that you may have to use Excel techniques to insert page breaks into a worksheet (such as applying an Excel macro to a sheet). Since in the Excel world, you have to be in a special PAGE VIEW in order to get the menu to insert page breaks.&lt;BR /&gt;
 &lt;BR /&gt;
  However, for the definitive response on how to insert page breaks (or whether it's possible) using TAGSETS.EXCELXP, you should consider opening a track with Tech Support.&lt;BR /&gt;
 &lt;BR /&gt;
  This paper on using TAGSETS.EXCELXP is very useful in explaining all the print options available to you:&lt;BR /&gt;
 &lt;A href="http://www.nesug.org/proceedings/nesug08/ap/ap06.pdf" target="_blank"&gt;http://www.nesug.org/proceedings/nesug08/ap/ap06.pdf&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
cynthia</description>
      <pubDate>Mon, 25 Jan 2010 19:41:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/outputting-to-Excel-with-page-breaks-when-the-value-of-a/m-p/46522#M6082</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2010-01-25T19:41:29Z</dc:date>
    </item>
    <item>
      <title>Re: outputting to Excel with page breaks when the value of a variable changes</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/outputting-to-Excel-with-page-breaks-when-the-value-of-a/m-p/46523#M6083</link>
      <description>Cynthia - thanks for the info.  They did want a page break as in just where it would print on a separate piece of paper. They have 1,000 clients and need to print out (I know, I know, I'm screaming inside about that!) for each client rather than having a separate worksheet that they could just send electronically.  They had everything in one file.&lt;BR /&gt;
&lt;BR /&gt;
I'll def. take a look at the info you suggest as I'm certain I'll be able to use it for other things.  Thanks again.</description>
      <pubDate>Tue, 26 Jan 2010 14:13:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/outputting-to-Excel-with-page-breaks-when-the-value-of-a/m-p/46523#M6083</guid>
      <dc:creator>stateworker</dc:creator>
      <dc:date>2010-01-26T14:13:34Z</dc:date>
    </item>
  </channel>
</rss>

