Hi:
OK...here goes.
If this were BASE SAS, I'd just suggest using ODS ESCAPECHAR and a NON-BREAKING space (ESCAPECHAR+UNDERSCORE). So, for example:
[pre]
title1 j=R '~S={preimage="/UETLDVH/config/ETL1DVH/images/Posten_Logo.jpg"}';
title2 ' ~S={asis=on}~_~_~_~_~_}hello world';
[/pre]
If the ESCAPECHAR is set to tilde (~), then every ~_ would be one non-breaking space and the ~S style override is the way that ODS ESCAPECHAR syntax would be used to pass ASIS=ON to ODS PDF.
OK...now some stored process specific comments:
1) Generally, your stored process cannot write to your LOCAL drive. So either you replace this:
[pre]
ods pdf file="RD040.pdf" notoc style = printer;
WITH
ods pdf file=_webout notoc style = printer;
[/pre]
and possibly use the STPSRV_HEADER function BEFORE the ODS PDF step (assuming you're going to run the stored process in the PORTAL). OR, you must use the *ProcessBody and the %STPBEGIN/%STPEND stored process macros instead of the ODS PDF OPEN and CLOSE statements. Information about STPSRV_HEADER for PDF:
http://support.sas.com/kb/12/994.html
2) Depending on WHERE you run your stored process, the location of the LOGO file, has to be a location that is accessible to either the Stored Process Server or the Workspace Server. These servers do not have any visibility of your local machine. When an RTF file or a PDF file is created and that file uses images, the images are converted to "internal" or embedded images. So the location you must specify in your PREIMAGE= attribute is the location where the image will be located when the PDF file is CREATED....this means in a location available to the server.
3) Remember that when you create PDF output from a stored process, you are limiting which client applications can run the stored process. For example, PDF results are only "received" by SAS Enterprise Guide, by the SAS Information Delivery Portal and/or by a custom call to the Stored Process Web Application. You will NOT be able to run this SP code from within WRS or the SAS Add-in for Microsoft Office.
cynthia