Hi, Normally, you do not do use %STPBEGIN in the way you show. Where is your override to &_ODSDEST that changes the destination to PDF??? Or, where is your use of _WEBOUT?? This Tech Support note shows the general method for producing a PDF result from a stored process: http://support.sas.com/kb/12/994.html Without an override to &_ODSDEST or the use of _WEBOUT, as shown, the default of SASReport XML or HTML will be returned to the client application (depending on your client -- would be SASReport XML for Web Report Studio; might be HTML for the Information Delivery Portal). When you say you are returning results to the "Web App browser", I figure you mean the Stored Process Web App (SPWA). I think that even for the SPWA, you need an override to the regular content-type header that is used/needed for streaming results. To set the appropriate content-type header, you use the STPSRV_HEADER function. You might want to work with Tech Support on this question. It is more probable that your issues are caused by how you invoked the stored process. If you use %STPBEGIN and there is no override to &_ODSDEST, then you are not getting PDF results at all. I am also not sure why you are creating a session, either. Usually, you only need to create a session if your stored process is going to go back to the server to get something (like a dataset or an image or ???), but I don't see that you use the session. And, for PDF output, in particular, images are embedded inside the PDF document at the time the PDF is created, so if you do manage to create PDF output, I'm not sure why you'd need to persist a session on the server. An example of persisting a session, with the SPWA, would be an example where 1) the underlying premise is that you are building your own HTML and 2) you start a session and create a SAVE dataset with a list of unique countries. You build the HTML in your program and 3) send it back to the web browser. Then the user makes a choice on the form and 4) you want to have the FORM action tag go back to the same session on the server, so you can access the list of unique countries for some further processing and then 5) you send new results back to the web browser. This type of "request/response" isn't really the type of thing to do with a PDF file of stored process results. cynthia
... View more