Try this
ods pdf file = 'test.pdf';
ods escapechar = '^';
* Your image has to be of proper size;
* you can also make logo left or right justify;
title "^S={preimage='C:\Users\sas.jpg'}";
proc print data = sashelp.class;
run;
ods pdf close;
Can you use ODS HTML TEXT / or a tagset?
Also could you use a preHTML function on a proc report? What is the desired output format?
ODS HTML TEXT="<DIV align=Left style='position:absolute; top:1px;'><IMG Src='Filename.jpg'></DIV>
";PROC REPORT DATA=FINAL LS=256 STYLE(report)={prehtml="<DIV align=Left style='position:absolute; top:1px;'><IMG Src='Filename.jpg'></DIV>
" rules=none}; -Tony
ODS HTML <DIV> tags will not work with PDF. The OP said PDF was the desired destination. Possibly there might be something to do with CSS -- but the bigger problem is that in a separate posting the same OP said he needed the logo to print even if the PROC generated no output -- so the logo on an empty page. Don't know whether that is still a requirement or not, but a complication.
cynthia
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.