<?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 How to Print Page Numbers with the ODS PRINT PDF in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/How-to-Print-Page-Numbers-with-the-ODS-PRINT-PDF/m-p/703669#M26053</link>
    <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am hoping to make a PDF with &lt;STRONG&gt;page numbers within the top right hand corner of the PDF.&lt;/STRONG&gt; Following others recommendations on a separate question, I tried to use&amp;nbsp;ods escapechar='^'; combined with&amp;nbsp;options pageno = 1;. However, this is still not working. I also understood that there is some issues using ODS PDF and obtaining page numbers.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attached the code I was using below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ODS PDF FILE ="...pdf";&lt;BR /&gt;OPTIONS NODATE NONUMBER;&lt;BR /&gt;ods escapechar='^';&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;options pageno = 1;&lt;BR /&gt;TITLE "...";&lt;BR /&gt;FOOTNOTE "....";&lt;BR /&gt;PROC REPORT DATA=....;&lt;BR /&gt;COLUMNS Statistic ('Statistical Results' (DF Value Prob));&lt;BR /&gt;DEFINE Statistic / '';&lt;BR /&gt;RUN;&lt;BR /&gt;;&lt;BR /&gt;options pageno = 2;&lt;BR /&gt;TITLE1 "....;&lt;BR /&gt;PROC SGPLOT DATA = ...... NOAUTOLEGEND;&lt;BR /&gt;REFLINE 1.8/ AXIS = Y&lt;BR /&gt;LABEL = "......."&lt;BR /&gt;LABELLOC=INSIDE&lt;BR /&gt;LINEATTRS= (COLOR = INDIGO&lt;BR /&gt;PATTERN= SHORTDASH);&lt;BR /&gt;VBAR datacd/ RESPONSE = COLPERCENT&lt;BR /&gt;DATALABEL STAT= SUM&lt;BR /&gt;GROUP= .......&lt;BR /&gt;FILLATTRS=(COLOR=LIGHTSALMON);&lt;BR /&gt;FORMAT ColPercent;&lt;BR /&gt;&lt;BR /&gt;XAXIS OFFSETMIN= 0.25&lt;BR /&gt;LABEL = "____"&lt;BR /&gt;LABELATTRS = (WEIGHT= BOLD);&lt;BR /&gt;&lt;BR /&gt;YAXIS VALUES =(0 TO 4 BY 1)&lt;BR /&gt;OFFSETMIN= 0&lt;BR /&gt;GRID&lt;BR /&gt;LABEL ="Percent"&lt;BR /&gt;LABELATTRS = (WEIGHT = BOLD)&lt;BR /&gt;VALUEATTRS = (WEIGHT = BOLD);&lt;BR /&gt;&lt;BR /&gt;RUN;&lt;BR /&gt;FOOTNOTE ",,,,,";&lt;BR /&gt;TITLE;&lt;BR /&gt;FOOTNOTE;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;options pageno = 3;&lt;BR /&gt;TITLE "___";&lt;BR /&gt;FOOTNOTE "_____";&lt;/P&gt;&lt;P&gt;PROC PRINT&lt;BR /&gt;DATA = Study&lt;BR /&gt;OBS = 'Variables' SPLIT = '*';&lt;BR /&gt;LABEL Dependent = 'Variable*Name'&lt;BR /&gt;FValue = 'F*Statistic'&lt;BR /&gt;ProbF = 'P-Value';&lt;BR /&gt;RUN;&lt;BR /&gt;ODS PDF CLOSE;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 04 Dec 2020 15:48:25 GMT</pubDate>
    <dc:creator>ninafelices</dc:creator>
    <dc:date>2020-12-04T15:48:25Z</dc:date>
    <item>
      <title>How to Print Page Numbers with the ODS PRINT PDF</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-Print-Page-Numbers-with-the-ODS-PRINT-PDF/m-p/703669#M26053</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am hoping to make a PDF with &lt;STRONG&gt;page numbers within the top right hand corner of the PDF.&lt;/STRONG&gt; Following others recommendations on a separate question, I tried to use&amp;nbsp;ods escapechar='^'; combined with&amp;nbsp;options pageno = 1;. However, this is still not working. I also understood that there is some issues using ODS PDF and obtaining page numbers.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attached the code I was using below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ODS PDF FILE ="...pdf";&lt;BR /&gt;OPTIONS NODATE NONUMBER;&lt;BR /&gt;ods escapechar='^';&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;options pageno = 1;&lt;BR /&gt;TITLE "...";&lt;BR /&gt;FOOTNOTE "....";&lt;BR /&gt;PROC REPORT DATA=....;&lt;BR /&gt;COLUMNS Statistic ('Statistical Results' (DF Value Prob));&lt;BR /&gt;DEFINE Statistic / '';&lt;BR /&gt;RUN;&lt;BR /&gt;;&lt;BR /&gt;options pageno = 2;&lt;BR /&gt;TITLE1 "....;&lt;BR /&gt;PROC SGPLOT DATA = ...... NOAUTOLEGEND;&lt;BR /&gt;REFLINE 1.8/ AXIS = Y&lt;BR /&gt;LABEL = "......."&lt;BR /&gt;LABELLOC=INSIDE&lt;BR /&gt;LINEATTRS= (COLOR = INDIGO&lt;BR /&gt;PATTERN= SHORTDASH);&lt;BR /&gt;VBAR datacd/ RESPONSE = COLPERCENT&lt;BR /&gt;DATALABEL STAT= SUM&lt;BR /&gt;GROUP= .......&lt;BR /&gt;FILLATTRS=(COLOR=LIGHTSALMON);&lt;BR /&gt;FORMAT ColPercent;&lt;BR /&gt;&lt;BR /&gt;XAXIS OFFSETMIN= 0.25&lt;BR /&gt;LABEL = "____"&lt;BR /&gt;LABELATTRS = (WEIGHT= BOLD);&lt;BR /&gt;&lt;BR /&gt;YAXIS VALUES =(0 TO 4 BY 1)&lt;BR /&gt;OFFSETMIN= 0&lt;BR /&gt;GRID&lt;BR /&gt;LABEL ="Percent"&lt;BR /&gt;LABELATTRS = (WEIGHT = BOLD)&lt;BR /&gt;VALUEATTRS = (WEIGHT = BOLD);&lt;BR /&gt;&lt;BR /&gt;RUN;&lt;BR /&gt;FOOTNOTE ",,,,,";&lt;BR /&gt;TITLE;&lt;BR /&gt;FOOTNOTE;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;options pageno = 3;&lt;BR /&gt;TITLE "___";&lt;BR /&gt;FOOTNOTE "_____";&lt;/P&gt;&lt;P&gt;PROC PRINT&lt;BR /&gt;DATA = Study&lt;BR /&gt;OBS = 'Variables' SPLIT = '*';&lt;BR /&gt;LABEL Dependent = 'Variable*Name'&lt;BR /&gt;FValue = 'F*Statistic'&lt;BR /&gt;ProbF = 'P-Value';&lt;BR /&gt;RUN;&lt;BR /&gt;ODS PDF CLOSE;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Dec 2020 15:48:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-Print-Page-Numbers-with-the-ODS-PRINT-PDF/m-p/703669#M26053</guid>
      <dc:creator>ninafelices</dc:creator>
      <dc:date>2020-12-04T15:48:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to Print Page Numbers with the ODS PRINT PDF</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-Print-Page-Numbers-with-the-ODS-PRINT-PDF/m-p/703679#M26054</link>
      <description>&lt;P&gt;As a minimum I would expect to see something attempting to use the {Thispage} function with the specified Escapechar with either Title, Footnote or maybe an ODS TEXT statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is an example from the documentation placing the page info into a footnote:&lt;/P&gt;
&lt;DIV class="xis-eDocBody"&gt;
&lt;DIV class="xis-refDictEntry"&gt;
&lt;DIV class="xis-statementExampleGroup"&gt;
&lt;DIV class="xis-statementExample"&gt;
&lt;DIV id="n09qcf4fmcwi4sn0z5p7gwtmov7v" class="xis-program"&gt;
&lt;DIV class="xis-codeBlockComplete"&gt;
&lt;PRE&gt;ods pdf file="&lt;SPAN class="xis-userSuppliedValue"&gt;your-file-path&lt;/SPAN&gt;/yourfilename.pdf" startpage=no nogtitle;&lt;BR /&gt;ods escapechar="^";

title "^{style [fontstyle=italic] Predicted 
       ^{style [fontstyle=roman]and }
       ^{style [foreground=italic]Actual } 
       ^{style [fontstyle=roman]Sales}}";
title2 "^{style [color=orange ]For Furniture By Region}";&lt;BR /&gt;&lt;BR /&gt;/* here is the page info at the bottom of a page*/
footnote "Page ^{thispage} of ^{lastpage}";

proc print data=sashelp.prdsale (obs=10); &lt;BR /&gt;   var product region actual predict; &lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;ods pdf close;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 04 Dec 2020 17:01:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-Print-Page-Numbers-with-the-ODS-PRINT-PDF/m-p/703679#M26054</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-12-04T17:01:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to Print Page Numbers with the ODS PRINT PDF</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-Print-Page-Numbers-with-the-ODS-PRINT-PDF/m-p/704616#M26162</link>
      <description>Remove:&lt;BR /&gt;OPTIONS NODATE NONUMBER;&lt;BR /&gt;ods escapechar='^';&lt;BR /&gt;&lt;BR /&gt;And replace with:&lt;BR /&gt;OPTIONS NODATE;&lt;BR /&gt;&lt;BR /&gt;Also remove the following statements from each section:&lt;BR /&gt;options pageno = ;&lt;BR /&gt;&lt;BR /&gt;Page numbers should automatically appear in the top right corner of the report.</description>
      <pubDate>Wed, 09 Dec 2020 04:57:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-Print-Page-Numbers-with-the-ODS-PRINT-PDF/m-p/704616#M26162</guid>
      <dc:creator>NikitaTovey</dc:creator>
      <dc:date>2020-12-09T04:57:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to Print Page Numbers with the ODS PRINT PDF</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-Print-Page-Numbers-with-the-ODS-PRINT-PDF/m-p/705962#M26295</link>
      <description>Hey there!&lt;BR /&gt;&lt;BR /&gt;As someone mentioned, I would remove the 'NO NUMBER' from your first OPTIONs statement.&lt;BR /&gt;I think, then, just having 'OPTIONS PAGENO=1;' between your ods endchar; and TITLE statements. Then, you can remove the other 'OPTIONS PAGENO=.'&lt;BR /&gt;&lt;BR /&gt;I saw that someone mentioned they should be automatic, but I know this should work!&lt;BR /&gt;Thanks and best of luck</description>
      <pubDate>Tue, 15 Dec 2020 09:06:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-Print-Page-Numbers-with-the-ODS-PRINT-PDF/m-p/705962#M26295</guid>
      <dc:creator>GallagherML</dc:creator>
      <dc:date>2020-12-15T09:06:23Z</dc:date>
    </item>
  </channel>
</rss>

