<?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: Call HTML file from SAS Stored Process. in Developers</title>
    <link>https://communities.sas.com/t5/Developers/Call-HTML-file-from-SAS-Stored-Process/m-p/898788#M6440</link>
    <description>&lt;P&gt;I would look to PROC STREAM.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;proc stream outfile = _webout prescol ;BEGIN&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;/* any HTML like: */&lt;/P&gt;
&lt;P&gt;&amp;lt;html&amp;gt;&amp;lt;head&amp;gt;&amp;lt;/head&amp;gt;&amp;lt;body&amp;gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;amp;streamdelim;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;%include "&amp;amp;yourpath.\yourfile.html" ; &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;;;;;&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 16 Oct 2023 13:48:38 GMT</pubDate>
    <dc:creator>FrankPoppe</dc:creator>
    <dc:date>2023-10-16T13:48:38Z</dc:date>
    <item>
      <title>Call HTML file from SAS Stored Process.</title>
      <link>https://communities.sas.com/t5/Developers/Call-HTML-file-from-SAS-Stored-Process/m-p/897536#M6438</link>
      <description>&lt;P&gt;&lt;FONT size="2"&gt;Hi Folks,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;I would like to understand , how can I call html file through STP, I am trying to convert/replicate SAS/IntrNet UI by STP.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;There are many HTML files are there, and inside master index.html file, many sub html call is happening.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;Please suggest. &lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Oct 2023 06:00:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Call-HTML-file-from-SAS-Stored-Process/m-p/897536#M6438</guid>
      <dc:creator>kumarsandip975</dc:creator>
      <dc:date>2023-10-06T06:00:49Z</dc:date>
    </item>
    <item>
      <title>Re: Call HTML file from SAS Stored Process.</title>
      <link>https://communities.sas.com/t5/Developers/Call-HTML-file-from-SAS-Stored-Process/m-p/897556#M6439</link>
      <description>&lt;P&gt;You can stream web files using STPs so long as you set the http headers, eg using a macro similar to this one:&amp;nbsp; &lt;A href="https://core.sasjs.io/mp__streamfile_8sas.html" target="_blank" rel="noopener"&gt;https://core.sasjs.io/mp__streamfile_8sas.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In general though it's not a recommended approach.&amp;nbsp; You will have the overhead of a SAS session for every asset (html, css, js files etc) plus the challenge of writing code to deal with situations such as very wide lines of text, binary files (images), different encodings etc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You would be far better off just using a web server to serve your web content, and calling your SAS services as needed using JS.&amp;nbsp; If you don't have SAS 9 EBI, or SAS Viya, you could try out SASjs Server as an alternative:&amp;nbsp; &lt;A href="https://server.sasjs.io" target="_blank" rel="noopener"&gt;https://server.sasjs.io&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The advantage of following the SASjs Server approach is that (so long as you use the SASjs framework) you will be able to easily migrate to Viya at a later date.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Oct 2023 09:29:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Call-HTML-file-from-SAS-Stored-Process/m-p/897556#M6439</guid>
      <dc:creator>AllanBowe</dc:creator>
      <dc:date>2023-10-06T09:29:31Z</dc:date>
    </item>
    <item>
      <title>Re: Call HTML file from SAS Stored Process.</title>
      <link>https://communities.sas.com/t5/Developers/Call-HTML-file-from-SAS-Stored-Process/m-p/898788#M6440</link>
      <description>&lt;P&gt;I would look to PROC STREAM.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;proc stream outfile = _webout prescol ;BEGIN&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;/* any HTML like: */&lt;/P&gt;
&lt;P&gt;&amp;lt;html&amp;gt;&amp;lt;head&amp;gt;&amp;lt;/head&amp;gt;&amp;lt;body&amp;gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;amp;streamdelim;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;%include "&amp;amp;yourpath.\yourfile.html" ; &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;;;;;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Oct 2023 13:48:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Call-HTML-file-from-SAS-Stored-Process/m-p/898788#M6440</guid>
      <dc:creator>FrankPoppe</dc:creator>
      <dc:date>2023-10-16T13:48:38Z</dc:date>
    </item>
  </channel>
</rss>

