Hi: If you are going to allow your users to select a destination, then you will have to double check what they select. For example, if the client application is Excel, then you can't let them select PDF. If they are in EG or the Stored Process Web App then you can let them select PDF. If they are in Web Report Studio, then no matter WHAT they select, the WRS interface will change ANYTHING they select to SASReport XML, same thing for PowerPoint. So, it is not as easy as it sounds. The only client apps that will accept or receive PDF output are EG, the Information Delivery Portal or the Stored Process Web App. If you are going to use any client other than EG, you will have to send an STPSRV_HEADER. If you are using EG or your users will be submitting the stored process from EG, then you can, I think use the simple %STPBEGIN override method. At this point, you might want to go over to the Stored Process forum discussion and look for references to the Information Delivery Portal, PDF and/or STPSRV_HEADER. You might also want to look at the Stored Process Developer's guide or some of the Tech Support notes on the subject about returning results other than the default to the various client applications. cynthia
... View more