A STP for a web application needs to create at least some stream output, as the STP web interface expects this. If no stream is sent, you get your first error message.
Your STP should send some stream output like "The operation was successful".
If you only want package output, you have to use the %stp_begin and %stp_end macros, as they set up the expected package output.
My preferred method for publishing would be
- don't use %stp_begin and %stp_end
- don't create a package; de-select package output
- create tables and/or HTML output on the server; HTML in a subdirectory where the web server has access (DocumentRoot and subdirs). "HTML" here also means downloadable content (text, csv, etc)
- send email from SAS (filename mail) to the recipients with a message that content has been created; include links to that content.
- satisfy streaming output by writing a success (or non-success) message to _webout (use HTML code).
Keeping results out of the email prevents problems caused by emails grwoing larger than mail servers tolerate.
... View more