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
Catch the best of SAS Innovate 2025 — anytime, anywhere. Stream powerful keynotes, real-world demos, and game-changing insights from the world’s leading data and AI minds.
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.
Ready to level-up your skills? Choose your own adventure.