<?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: Page X  of Y  not work in WORD 2007 in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Page-X-of-Y-not-work-in-WORD-2007/m-p/53426#M6650</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; I no longer have Office 2007 to work with, but I have used and tested the ODS ESCAPECHAR method of generating Page X of Y in Word 2003, 2007, and 2010. ODS ESCAPECHAR methods DO work in all these versions of Word, whether I use {THISPAGE} and {LASTPAGE} or {PAGEOF} (RTF only). In some instances, Word had to be forced to repaginate in order to see the results; in other instances, I had to switch into Page Preview or Print Preview mode. The only instance where Page X of Y does not work with ODS RTF is when you try to use the BODYTITLE option with the ODS ESCAPECHAR method of generating Page X of Y page numbers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Since you did not provide code, I'm not sure what's happened. I would recommend a simple test:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;options nodate nonumber;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods listing close;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods rtf file='testpgno.rtf';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods escapechar='^';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;title j=r 'Title: This is Page ^{pageof}';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;footnote j=r 'Footnote: This is Page ^{thispage} of ^{lastpage}';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;footnote2 j=r 'Footnote2: -- ^{thispage} --';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;proc print data=sashelp.shoes noobs;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods rtf close;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the above test does NOT work for you to get page X of Y page numbering, then I would recommend that you open a track with Tech Support. If the above test DOES work for you, then I would recommend that you compare the above code to your code and adjust your code accordingly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Nov 2011 14:36:22 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2011-11-23T14:36:22Z</dc:date>
    <item>
      <title>Page X  of Y  not work in WORD 2007</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Page-X-of-Y-not-work-in-WORD-2007/m-p/53425#M6649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In SAS 9.3&amp;nbsp; I run the sample code in&amp;nbsp; &lt;A href="http://support.sas.com/kb/24/602.html"&gt;http://support.sas.com/kb/24/602.html &lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table of content worked. But footnote&amp;nbsp; Page X of Y not resolved in WORD 2007. Still as following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD valign="top" width="384"&gt; &lt;P align="right"&gt;&lt;SPAN lang="EN-US"&gt;{Page}&amp;nbsp; {field{*fldinst { PAGE }}}~of~{field {*fldinst{ NUMPAGES }}}&lt;/SPAN&gt;&lt;/P&gt;&amp;nbsp; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Anyone can help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Randy &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Nov 2011 10:37:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Page-X-of-Y-not-work-in-WORD-2007/m-p/53425#M6649</guid>
      <dc:creator>RD2</dc:creator>
      <dc:date>2011-11-23T10:37:50Z</dc:date>
    </item>
    <item>
      <title>Re: Page X  of Y  not work in WORD 2007</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Page-X-of-Y-not-work-in-WORD-2007/m-p/53426#M6650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; I no longer have Office 2007 to work with, but I have used and tested the ODS ESCAPECHAR method of generating Page X of Y in Word 2003, 2007, and 2010. ODS ESCAPECHAR methods DO work in all these versions of Word, whether I use {THISPAGE} and {LASTPAGE} or {PAGEOF} (RTF only). In some instances, Word had to be forced to repaginate in order to see the results; in other instances, I had to switch into Page Preview or Print Preview mode. The only instance where Page X of Y does not work with ODS RTF is when you try to use the BODYTITLE option with the ODS ESCAPECHAR method of generating Page X of Y page numbers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Since you did not provide code, I'm not sure what's happened. I would recommend a simple test:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;options nodate nonumber;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods listing close;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods rtf file='testpgno.rtf';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods escapechar='^';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;title j=r 'Title: This is Page ^{pageof}';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;footnote j=r 'Footnote: This is Page ^{thispage} of ^{lastpage}';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;footnote2 j=r 'Footnote2: -- ^{thispage} --';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;proc print data=sashelp.shoes noobs;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods rtf close;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the above test does NOT work for you to get page X of Y page numbering, then I would recommend that you open a track with Tech Support. If the above test DOES work for you, then I would recommend that you compare the above code to your code and adjust your code accordingly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Nov 2011 14:36:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Page-X-of-Y-not-work-in-WORD-2007/m-p/53426#M6650</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2011-11-23T14:36:22Z</dc:date>
    </item>
    <item>
      <title>Page X  of Y  not work in WORD 2007</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Page-X-of-Y-not-work-in-WORD-2007/m-p/53427#M6651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Probably a silly suggestion, but does hitting Alt-F9 in the Word document help?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Nov 2011 18:08:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Page-X-of-Y-not-work-in-WORD-2007/m-p/53427#M6651</guid>
      <dc:creator>DouglasMartin</dc:creator>
      <dc:date>2011-11-23T18:08:37Z</dc:date>
    </item>
    <item>
      <title>Page X  of Y  not work in WORD 2007</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Page-X-of-Y-not-work-in-WORD-2007/m-p/53428#M6652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Cyntia,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your code worked.&amp;nbsp; But after I rerun the code in&amp;nbsp; &lt;A class="jive-link-external-small" href="http://support.sas.com/kb/24/602.html" style="background-color: #eef4f9; color: #0e66ba;"&gt;http://support.sas.com/kb/24/602.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;what strange&amp;nbsp; are:&lt;/P&gt;&lt;P&gt;1)&amp;nbsp; There is no Footnote in rtf&lt;/P&gt;&lt;P&gt; 2) TOC not worked. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I follow the following instruction:&lt;/P&gt;&lt;P&gt;/* In SAS 9.2 use: ods rtf file='c:\temp\contents.rtf' contents toc_data; */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Randy &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Nov 2011 10:03:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Page-X-of-Y-not-work-in-WORD-2007/m-p/53428#M6652</guid>
      <dc:creator>RD2</dc:creator>
      <dc:date>2011-11-24T10:03:54Z</dc:date>
    </item>
    <item>
      <title>Re: Page X  of Y  not work in WORD 2007</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Page-X-of-Y-not-work-in-WORD-2007/m-p/53429#M6653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; That code uses DATA _NULL_ techniques and there are no FOOTNOTE statements in the code. Did you add a FOOTNOTE statement to the code AND, you also have to add an ODS ESCAPECHAR statement to the code??? And, what do you mean when you say that the TOC did not work? Did you see a (mostly) empty page that had a title of TABLE OF CONTENTS at the top of the empty page? And if you saw the empty page, did you right click and tell Word to update the fields??? With the CONTENTS= option, RTF sends the RTF control codes for creating the TOC, but you must manually go to the first page and tell Word to update the fields to create the TABLE of CONTENTS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Nov 2011 15:51:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Page-X-of-Y-not-work-in-WORD-2007/m-p/53429#M6653</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2011-11-24T15:51:57Z</dc:date>
    </item>
    <item>
      <title>Re: Page X  of Y  not work in WORD 2007</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Page-X-of-Y-not-work-in-WORD-2007/m-p/53430#M6654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Cynthia,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right click do the trick for TOC. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess the footnote problem is because template overwrite by other program when I run the sample code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Nov 2011 02:17:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Page-X-of-Y-not-work-in-WORD-2007/m-p/53430#M6654</guid>
      <dc:creator>RD2</dc:creator>
      <dc:date>2011-11-25T02:17:41Z</dc:date>
    </item>
    <item>
      <title>Re: Page X  of Y  not work in WORD 2007</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Page-X-of-Y-not-work-in-WORD-2007/m-p/53431#M6655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmmm...well, I ran the sample program, with a footnote statement and an ODS ESCAPECHAR statement and using Page X of Y functions in the footnote and in Office 2010, I got the right page numbers when I ran the code. As I said, I have used Page X of Y in my code with Office 2003, Office 2007 and Office 2010. I'd recommend that you work with Tech Support -- there's nothing I can think of in the template that would interfere with the page numbers. Tech Support can look at all your code and test opening the output in the version of Word that is the same as yours.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;** here is the code I used to create the screenshot taken in Word 2010;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;** the attached screenshot shows the bottom of page 2 and the top of page 3;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;options nodate nonumber;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods escapechar='^';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods listing close;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods rtf file='c:\temp\data_step_contents.rtf' &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; contents toc_data;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;footnote j=r 'Footnote: This is Page ^{thispage} of ^{lastpage}';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;footnote2 j=r 'Footnote2: -- ^{thispage} --';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods proclabel "Ms. Crabapple's Class"; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;title 'Class Health Information';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;data _null_;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; file print ods; /* Use default table template */&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; set sashelp.class;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; put _ods_;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods proclabel "Teacher - Crabapple"; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;title 'Class Roster - Girls';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;data _null_;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; file print ods=(variable=(name age));&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; set sashelp.class (keep=name sex age);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; where sex='F';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; put _ods_;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods proclabel "Teacher - Crabapple"; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;title 'Class Roster - Boys';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;data _null_;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; file print ods=(variable=(name age));&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; set sashelp.class (keep=name sex age);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; where sex='M';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; put _ods_;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods _all_ close;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods listing; /* Reopen listing */&lt;/STRONG&gt;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/11141iDD6D36E9FA2464E3/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="data_step_contents_rtf.jpg" title="data_step_contents_rtf.jpg" /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Nov 2011 03:33:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Page-X-of-Y-not-work-in-WORD-2007/m-p/53431#M6655</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2011-11-25T03:33:15Z</dc:date>
    </item>
  </channel>
</rss>

