But your code creates a PDF file, not an HTML file. And remember that for a COMPUTE block, such as COMPUTE BEFORE _PAGE_ preimage will be BEFORE the LINE output and postimage should be AFTER the LINE output - what I can't remember is whether the POSTIMAGE will get placed after the first LINE or after all the LINES. But anyway, the images will be within the footprint of the table -- so if you have a skinny table, the images will NOT look like they are logos at the top of the HTML page.
So I do not think that COMPUTE BEFORE _PAGE_ is actually what the original poster wants -- but I'm just guessing, since the OP has never come back to contribute to this on-going conversation.
As to why your images did not show, if you did indeed use ODS HTML, then there are several reasons why you might not have seen the images in the output. You may not have used PATH= correctly, the HTML output might not have been placed in the c:\temp directory, the <IMG> tag that was built for the image was incorrect. Since you posted PDF code, it is hard to comment.
This Tech Support note shows how to use PREIMAGE in a style template:
http://support.sas.com/kb/23/385.html
and this user-group paper:
http://www2.sas.com/proceedings/forum2007/099-2007.pdf (on page 14) shows how to use ODS ESCAPECHAR (for RTF, PDF and HTML).
These FAQ and Tech Support notes all have examples of using images:
http://support.sas.com/kb/23/485.html (shows direct HTML method)
http://support.sas.com/kb/23/419.html
http://support.sas.com/kb/23/691.html
This code, without the COMPUTE BEFORE _PAGE_ worked for me using ODS HTML to get 2 images into a SAS TITLE statement.
cynthia
[pre]
** note, all images are stored in c:\temp directory;
** use relative path name for IMG tag;
ods html path='c:\temp' (url=none)
file="main.html" style=sasweb;
ods escapechar='~';
title j=left "~S={preimage='image1.jpg'}" j=c 'CBRC Company' j=right "~S={preimage='image2.jpg'}";
title2 j=center "Title Line 2" ;
proc report data=sashelp.class nowd;
column name sex height weight;
run;
ods html close;
[/pre]