<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Text output opens as HTML When Stored Process is executed in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Text-output-opens-as-HTML-When-Stored-Process-is-executed/m-p/4499#M1443</link>
    <description>Hi:&lt;BR /&gt;
You really need to contact Tech Support for help. The reason is that EG, when you use the Stored Process Wizard, uses a special set of macro calls to %STPBEGIN and %STPEND in order to do all the setup for the client applications.&lt;BR /&gt;
 &lt;BR /&gt;
Sometimes, you can use STPSRV_HEADER with %STPBEGIN and then sometimes you have to switch to an alternative to %STPBEGIN and write to _WEBOUT directly. I do not know which scenario your stored process will fall into. And, even if you CAN get it working, I do not know whether the output will be what you want.&lt;BR /&gt;
 &lt;BR /&gt;
When I was working on the stored process course a while back, I tested the creation of an ASCII text file and although I could make the browser launch Notepad to open my results,  the Notepad default font of Arial was used and my output looked nothing like I expected it to look. At that point, I didn't even bother to save my code.&lt;BR /&gt;
 &lt;BR /&gt;
Some previous examples of using STPSRV_HEADER have been posted to the forum.&lt;BR /&gt;
&lt;A href="http://support.sas.com/forums/thread.jspa?messageID=6638᧮" target="_blank"&gt;http://support.sas.com/forums/thread.jspa?messageID=6638᧮&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://support.sas.com/forums/thread.jspa?messageID=3244ಬ" target="_blank"&gt;http://support.sas.com/forums/thread.jspa?messageID=3244ಬ&lt;/A&gt;&lt;BR /&gt;
 &lt;BR /&gt;
Even so, I highly recommend that you contact Tech Support for further help. This is not a trivial bit of code and if the output does NOT look the way you want, then you will need more help from Tech Support to get that piece working.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
    <pubDate>Tue, 04 Sep 2007 15:27:54 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2007-09-04T15:27:54Z</dc:date>
    <item>
      <title>Text output opens as HTML When Stored Process is executed</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Text-output-opens-as-HTML-When-Stored-Process-is-executed/m-p/4496#M1440</link>
      <description>Hi&lt;BR /&gt;
&lt;BR /&gt;
I am using a List data task in EG to generate a report with results as Text. So it uses proc print. I create a Stored Process out of the EG project. But when I execute the Stored Process through EG or through StoredProcess web application the output comes as HTML&lt;BR /&gt;
&lt;BR /&gt;
I want to see text out put only from the browser as well.</description>
      <pubDate>Tue, 04 Sep 2007 12:54:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Text-output-opens-as-HTML-When-Stored-Process-is-executed/m-p/4496#M1440</guid>
      <dc:creator>SanjayM</dc:creator>
      <dc:date>2007-09-04T12:54:09Z</dc:date>
    </item>
    <item>
      <title>Re: Text output opens as HTML When Stored Process is executed</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Text-output-opens-as-HTML-When-Stored-Process-is-executed/m-p/4497#M1441</link>
      <description>Hi:&lt;BR /&gt;
  This really is a question for Tech Support. Every client application in the Enterprise Intelligence Platform "knows" which kind of content (HTML or SASReport) it is best able to receive. Listing or TEXT output is not the default for any of the Enterprise Intelligence client applications.&lt;BR /&gt;
 &lt;BR /&gt;
  When you use the Stored Process Wizard to make your stored process, EG sets up the stored process so that the result type is flexible -- every client app will get the content it wants. If you really want to override the content-type/output type so you return ASCII text files to a web browser, Tech Support can help you reset the content-type header using the STPSRV_HEADER function. However, there is still no guarantee that the output, as it comes from the server, will look exactly the same as your Text file in EG or your output in the LISTING window.&lt;BR /&gt;
&lt;BR /&gt;
For more information about how to contact Tech Support, refer to:&lt;BR /&gt;
 &lt;A href="http://support.sas.com/techsup/contact/index.html" target="_blank"&gt;http://support.sas.com/techsup/contact/index.html&lt;/A&gt;&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Tue, 04 Sep 2007 14:41:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Text-output-opens-as-HTML-When-Stored-Process-is-executed/m-p/4497#M1441</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2007-09-04T14:41:54Z</dc:date>
    </item>
    <item>
      <title>Re: Text output opens as HTML When Stored Process is executed</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Text-output-opens-as-HTML-When-Stored-Process-is-executed/m-p/4498#M1442</link>
      <description>Cynthia&lt;BR /&gt;
&lt;BR /&gt;
Where do I specify the Content type as text/plain &lt;BR /&gt;
&lt;BR /&gt;
Where should I write the code</description>
      <pubDate>Tue, 04 Sep 2007 15:03:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Text-output-opens-as-HTML-When-Stored-Process-is-executed/m-p/4498#M1442</guid>
      <dc:creator>SanjayM</dc:creator>
      <dc:date>2007-09-04T15:03:04Z</dc:date>
    </item>
    <item>
      <title>Re: Text output opens as HTML When Stored Process is executed</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Text-output-opens-as-HTML-When-Stored-Process-is-executed/m-p/4499#M1443</link>
      <description>Hi:&lt;BR /&gt;
You really need to contact Tech Support for help. The reason is that EG, when you use the Stored Process Wizard, uses a special set of macro calls to %STPBEGIN and %STPEND in order to do all the setup for the client applications.&lt;BR /&gt;
 &lt;BR /&gt;
Sometimes, you can use STPSRV_HEADER with %STPBEGIN and then sometimes you have to switch to an alternative to %STPBEGIN and write to _WEBOUT directly. I do not know which scenario your stored process will fall into. And, even if you CAN get it working, I do not know whether the output will be what you want.&lt;BR /&gt;
 &lt;BR /&gt;
When I was working on the stored process course a while back, I tested the creation of an ASCII text file and although I could make the browser launch Notepad to open my results,  the Notepad default font of Arial was used and my output looked nothing like I expected it to look. At that point, I didn't even bother to save my code.&lt;BR /&gt;
 &lt;BR /&gt;
Some previous examples of using STPSRV_HEADER have been posted to the forum.&lt;BR /&gt;
&lt;A href="http://support.sas.com/forums/thread.jspa?messageID=6638᧮" target="_blank"&gt;http://support.sas.com/forums/thread.jspa?messageID=6638᧮&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://support.sas.com/forums/thread.jspa?messageID=3244ಬ" target="_blank"&gt;http://support.sas.com/forums/thread.jspa?messageID=3244ಬ&lt;/A&gt;&lt;BR /&gt;
 &lt;BR /&gt;
Even so, I highly recommend that you contact Tech Support for further help. This is not a trivial bit of code and if the output does NOT look the way you want, then you will need more help from Tech Support to get that piece working.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Tue, 04 Sep 2007 15:27:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Text-output-opens-as-HTML-When-Stored-Process-is-executed/m-p/4499#M1443</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2007-09-04T15:27:54Z</dc:date>
    </item>
  </channel>
</rss>

