Hello,
I am hoping to make a PDF with page numbers within the top right hand corner of the PDF. Following others recommendations on a separate question, I tried to use ods escapechar='^'; combined with options pageno = 1;. However, this is still not working. I also understood that there is some issues using ODS PDF and obtaining page numbers.
I have attached the code I was using below:
ODS PDF FILE ="...pdf";
OPTIONS NODATE NONUMBER;
ods escapechar='^';
options pageno = 1;
TITLE "...";
FOOTNOTE "....";
PROC REPORT DATA=....;
COLUMNS Statistic ('Statistical Results' (DF Value Prob));
DEFINE Statistic / '';
RUN;
;
options pageno = 2;
TITLE1 "....;
PROC SGPLOT DATA = ...... NOAUTOLEGEND;
REFLINE 1.8/ AXIS = Y
LABEL = "......."
LABELLOC=INSIDE
LINEATTRS= (COLOR = INDIGO
PATTERN= SHORTDASH);
VBAR datacd/ RESPONSE = COLPERCENT
DATALABEL STAT= SUM
GROUP= .......
FILLATTRS=(COLOR=LIGHTSALMON);
FORMAT ColPercent;
XAXIS OFFSETMIN= 0.25
LABEL = "____"
LABELATTRS = (WEIGHT= BOLD);
YAXIS VALUES =(0 TO 4 BY 1)
OFFSETMIN= 0
GRID
LABEL ="Percent"
LABELATTRS = (WEIGHT = BOLD)
VALUEATTRS = (WEIGHT = BOLD);
RUN;
FOOTNOTE ",,,,,";
TITLE;
FOOTNOTE;
options pageno = 3;
TITLE "___";
FOOTNOTE "_____";
PROC PRINT
DATA = Study
OBS = 'Variables' SPLIT = '*';
LABEL Dependent = 'Variable*Name'
FValue = 'F*Statistic'
ProbF = 'P-Value';
RUN;
ODS PDF CLOSE;