For creating a PDF file of a SAS job or SAS procedure, we need to bracket the section of code for which you want to create tables or/and graphs:
options orientation=landscape;
ods pdf file=’test.pdf’;
goptions device=pdf colors=(black) rotate=landscape;
...
\SAS\ procedures
...
ods pdf close;
Example:
options orientation=landscape;
ods pdf file=’output-to-Test.pdf’;
goptions device=pdf colors=(black) rotate=landscape;
ods graphics on;