<?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: {pageof} does not show page numbers when used with tagset in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/pageof-does-not-show-page-numbers-when-used-with-tagset/m-p/26774#M4285</link>
    <description>Hi:&lt;BR /&gt;
  There is nothing to "get working" ODS RTF is working as designed and ODS TAGSETS.RTF is working as designed. ODS RTF is the "original" RTF -- the page numbering instructions, when you use ODS ESCAPECHAR are inserted into the HEADER and FOOTER areas of the document, which then are resolved (by Word) when the document is opened in Edit mode. ODS TAGSETS.RTF works slightly differently, the SAS TITLE and FOOTNOTE are -inside- the document, but not in the HEADER and FOOTER area.&lt;BR /&gt;
 &lt;BR /&gt;
   When you create a document with TAGSETS.RTF, the field codes do not show in the body of the document  &lt;B&gt;because of &lt;I&gt;Microsoft Word&lt;/I&gt; behavior.&lt;/B&gt; These field codes are not shown in Edit mode -- that's how Word works. &lt;BR /&gt;
  &lt;BR /&gt;
Your choices are to switch back to ODS RTF so your titles and footnotes go into the header/footer  area of the document or to use the style template method already outlined by Wayne in his answer to your question.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
    <pubDate>Fri, 11 Dec 2009 14:42:38 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2009-12-11T14:42:38Z</dc:date>
    <item>
      <title>{pageof} does not show page numbers when used with tagset</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/pageof-does-not-show-page-numbers-when-used-with-tagset/m-p/26770#M4281</link>
      <description>Hello &lt;BR /&gt;
&lt;BR /&gt;
In #Code below, {pageof} used with ODS Tagset does not show the page numbers when the word document is opened, however it is seen in print out and print previews. How can we see the page numbers when the document is opened. This issue was highlighted by audit.&lt;BR /&gt;
Note: Need to use ODS Tagset &lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
# Code&lt;BR /&gt;
============================&lt;BR /&gt;
ods escapechar='^'; &lt;BR /&gt;
title1 'Table 11-20 (Page ^{pageof})'; &lt;BR /&gt;
ods tagsets.rtf file='c:\test.rtf'; &lt;BR /&gt;
proc print data=sashelp.class noobs label; &lt;BR /&gt;
run; &lt;BR /&gt;
ods tagsets.rtf close;&lt;BR /&gt;
&lt;BR /&gt;
Thank you very much&lt;BR /&gt;
Sanjay Masawan</description>
      <pubDate>Mon, 07 Dec 2009 12:18:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/pageof-does-not-show-page-numbers-when-used-with-tagset/m-p/26770#M4281</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-12-07T12:18:12Z</dc:date>
    </item>
    <item>
      <title>Re: {pageof} does not show page numbers when used with tagset</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/pageof-does-not-show-page-numbers-when-used-with-tagset/m-p/26771#M4282</link>
      <description>Hello Sanjay,&lt;BR /&gt;
&lt;BR /&gt;
Titles and footnotes are tables in tagsets.rtf. As such the field edit instructions do not get executed by default on opening the file in edit mode. If you use Print Preview in Word, the instructions should be executed as if you were prinitng the doc.&lt;BR /&gt;
&lt;BR /&gt;
Another way to get at this without the Print Preview setting is to use the PAGENO style element. This will give you the ability to change the page number setting that is imposed with an rtf "header" specification. &lt;BR /&gt;
&lt;BR /&gt;
style pageno from pageno /&lt;BR /&gt;
font = fonts("strongfont")&lt;BR /&gt;
cellpadding = 0&lt;BR /&gt;
cellspacing = 0&lt;BR /&gt;
posttext="of (*ESC*){lastpage} ";&lt;BR /&gt;
;&lt;BR /&gt;
end;&lt;BR /&gt;
&lt;BR /&gt;
then apply the style on the ODS statement.&lt;BR /&gt;
&lt;BR /&gt;
ods tagsets.rtf file='Pageof.map' style=styles.pageof;</description>
      <pubDate>Mon, 07 Dec 2009 15:22:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/pageof-does-not-show-page-numbers-when-used-with-tagset/m-p/26771#M4282</guid>
      <dc:creator>wayne_sas</dc:creator>
      <dc:date>2009-12-07T15:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: {pageof} does not show page numbers when used with tagset</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/pageof-does-not-show-page-numbers-when-used-with-tagset/m-p/26772#M4283</link>
      <description>Hi:&lt;BR /&gt;
  The {pageof} ESCAPECHAR function inserts Word field codes into your document. I believe you can toggle with Alt+F9 to reveal the codes. It makes sense to me that you'd see the page numbers only in Print Preview. The status bar in Word tells you what the page numbers are otherwise. I thought that page numbers only appeared in Edit mode when they were in the header/footer area of the document. Since TAGSETS.RTF doesn't put the page numbers in the header/footer area when you use {PAGEOF}, I tested what the default Word behavior will be.&lt;BR /&gt;
 &lt;BR /&gt;
  If I go into Word (without using SAS) and start a new document and tell Word to put the page number in the body of the document (Insert --Page Numbers -- Current Position), I do NOT see page numbers until I am in Print Preview mode. What I see in the body of the word document is:&lt;BR /&gt;
[pre]&lt;BR /&gt;
{ PAGE    \* MERGEFORMAT }&lt;BR /&gt;
[/pre]&lt;BR /&gt;
 &lt;BR /&gt;
  So, it seems to me that this issue is not with SAS, but with how Word treats page numbers inserted into the body of your document.&lt;BR /&gt;
            &lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Mon, 07 Dec 2009 15:30:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/pageof-does-not-show-page-numbers-when-used-with-tagset/m-p/26772#M4283</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2009-12-07T15:30:54Z</dc:date>
    </item>
    <item>
      <title>Re: {pageof} does not show page numbers when used with tagset</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/pageof-does-not-show-page-numbers-when-used-with-tagset/m-p/26773#M4284</link>
      <description>Hello Cynthia,&lt;BR /&gt;
&lt;BR /&gt;
How come it works fine with ODS rtf and not with tagset.&lt;BR /&gt;
Please suggest a way to get this working.&lt;BR /&gt;
&lt;BR /&gt;
Regards&lt;BR /&gt;
Sanjay</description>
      <pubDate>Fri, 11 Dec 2009 08:54:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/pageof-does-not-show-page-numbers-when-used-with-tagset/m-p/26773#M4284</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-12-11T08:54:31Z</dc:date>
    </item>
    <item>
      <title>Re: {pageof} does not show page numbers when used with tagset</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/pageof-does-not-show-page-numbers-when-used-with-tagset/m-p/26774#M4285</link>
      <description>Hi:&lt;BR /&gt;
  There is nothing to "get working" ODS RTF is working as designed and ODS TAGSETS.RTF is working as designed. ODS RTF is the "original" RTF -- the page numbering instructions, when you use ODS ESCAPECHAR are inserted into the HEADER and FOOTER areas of the document, which then are resolved (by Word) when the document is opened in Edit mode. ODS TAGSETS.RTF works slightly differently, the SAS TITLE and FOOTNOTE are -inside- the document, but not in the HEADER and FOOTER area.&lt;BR /&gt;
 &lt;BR /&gt;
   When you create a document with TAGSETS.RTF, the field codes do not show in the body of the document  &lt;B&gt;because of &lt;I&gt;Microsoft Word&lt;/I&gt; behavior.&lt;/B&gt; These field codes are not shown in Edit mode -- that's how Word works. &lt;BR /&gt;
  &lt;BR /&gt;
Your choices are to switch back to ODS RTF so your titles and footnotes go into the header/footer  area of the document or to use the style template method already outlined by Wayne in his answer to your question.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Fri, 11 Dec 2009 14:42:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/pageof-does-not-show-page-numbers-when-used-with-tagset/m-p/26774#M4285</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2009-12-11T14:42:38Z</dc:date>
    </item>
  </channel>
</rss>

