Can I move the page number and/or date from the top right-hand corner of the ODS PDF page?


Starting in SAS® 9.1, you can move the page number and date around with PROC TEMPLATE by setting the JUST= and VJUST= attributes in the style elements that control them.

The sample code below illustrates this.


proc template;
   define style move;
   parent=styles.printer;
      style PageNo from TitlesAndFooters /
            pretext = "--"
            posttext = "--"
            cellpadding=0
            cellspacing=0
            just=c   /* Center */
            vjust=b  /* Bottom */;
      style BodyDate from Date /
            just=l   /* Left */
            vjust=t  /* Top */;
   end;
run;

options number;
ods pdf file="file.pdf" style=move;

proc print data=sashelp.retail;
run;

ods pdf close