- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Posted 10-10-2007 05:43 AM
(1202 views)
Hi
How can I specify
Content-type: text/plain; encoding=iso-8859-1
I want the reports outputs as plain text in browser. My reprts is a Stored Process.
Help me with the syntax please.
Refer url
http://support.sas.com/rnd/itech/doc9/dev_guide/stprocess/httphead.html
How can I specify
Content-type: text/plain; encoding=iso-8859-1
I want the reports outputs as plain text in browser. My reprts is a Stored Process.
Help me with the syntax please.
Refer url
http://support.sas.com/rnd/itech/doc9/dev_guide/stprocess/httphead.html
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Hi:
Your URL was the correct place in the documentation and it explained that STPSRV_HEADER is a DATA step function. So you'd need to use it in a DATA step:
[pre]
DATA _null_;
*** use function to change header;
run;
[/pre]
There are many examples of using STPSRV_HEADER on that URL. For a forum posting with a different example, refer to:
http://support.sas.com/forums/thread.jspa?messageID=6638᧮
Whether you should use %stpbegin or whether you should use _WEBOUT depends on how you intend to invoke the stored process. Tech Support can be of more help with this issue. Remember that the output from this technique will not be supported in Web Report Studio and PowerPoint, because they do not use the HTTP headers with SASReport XML and the output may not be respected in other client applications, either. Generally, this technique is best used for stored processes being executed via the Portal or through the Stored Process Web App.
To find out how to contact Tech Support, refer to:
http://support.sas.com/techsup/contact/index.html
cynthia
Your URL was the correct place in the documentation and it explained that STPSRV_HEADER is a DATA step function. So you'd need to use it in a DATA step:
[pre]
DATA _null_;
*** use function to change header;
run;
[/pre]
There are many examples of using STPSRV_HEADER on that URL. For a forum posting with a different example, refer to:
http://support.sas.com/forums/thread.jspa?messageID=6638᧮
Whether you should use %stpbegin or whether you should use _WEBOUT depends on how you intend to invoke the stored process. Tech Support can be of more help with this issue. Remember that the output from this technique will not be supported in Web Report Studio and PowerPoint, because they do not use the HTTP headers with SASReport XML and the output may not be respected in other client applications, either. Generally, this technique is best used for stored processes being executed via the Portal or through the Stored Process Web App.
To find out how to contact Tech Support, refer to:
http://support.sas.com/techsup/contact/index.html
cynthia