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
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.