title: sas page footnote in ods pdf
body: <p>I'd like to have a page number in the format of "X OF Y PAGES" at the right bottom of each page. 
  I tried the following code for a pdf result but it's just displaying "Page *{thispage} of &amp;num" literally. Can anyone help with this? Thanks!</p>
  
  <pre><code>* create the file with the number of pages */
  
  ods results;
  
  ods pdf file="c:\temp\pagenumb.pdf" compress=0;
  
  footnote j=r "Page *{thispage} of &amp;num";
  
  %pdf_code;
  
  ods pdf close;
  </code></pre>