<?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: Compress / gzip html file returned by streaming stored process? in Developers</title>
    <link>https://communities.sas.com/t5/Developers/Compress-gzip-html-file-returned-by-streaming-stored-process/m-p/176297#M4273</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried:&lt;/P&gt;&lt;PRE&gt;data a ;
&amp;nbsp; array me{10} ; 
&amp;nbsp; do i=1 to 1000 ; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; do j=1 to dim(me) ;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; me{j}=ranuni(0) ; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; end ; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; output ; 
&amp;nbsp; end ;
&amp;nbsp; drop i j ; 
run ;

%let rc=%sysfunc(stpsrv_header(Content-Encoding,gzip));

%stpbegin()
proc print data=a;
run;
%stpend()

&lt;/PRE&gt;&lt;P&gt;And didn't get any results returned at all.&amp;nbsp; And the stored process server logs didn't show any errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Guess that could mean it isn't enabled on the mid-tier.&amp;nbsp; Will have a chat with the admin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Oct 2014 17:36:00 GMT</pubDate>
    <dc:creator>Quentin</dc:creator>
    <dc:date>2014-10-09T17:36:00Z</dc:date>
    <item>
      <title>Compress / gzip html file returned by streaming stored process?</title>
      <link>https://communities.sas.com/t5/Developers/Compress-gzip-html-file-returned-by-streaming-stored-process/m-p/176295#M4271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose I have a stored process invoked through stored process web app which returns streaming results.&amp;nbsp; In this case, the results are a very big HTML file from a distant server.&amp;nbsp; And it takes a long time to reach the user.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have seen that some web servers are configured to compress .html files before they are sent to the user, to decrease transfer times.&amp;nbsp; (Understanding there is also a cost to taking the time to compress at the server and uncompress at the browser).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the SAS BI setting with the stored process server, is it possible to configure the server so that html files will be compressed?&amp;nbsp; Or is this something I can turn on some other way at the stored process level (e.g. via stsprv_header) ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(I realize another option would be to change to deliver package results.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;--Q.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2014 12:41:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Compress-gzip-html-file-returned-by-streaming-stored-process/m-p/176295#M4271</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2014-10-08T12:41:09Z</dc:date>
    </item>
    <item>
      <title>Re: Compress / gzip html file returned by streaming stored process?</title>
      <link>https://communities.sas.com/t5/Developers/Compress-gzip-html-file-returned-by-streaming-stored-process/m-p/176296#M4272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is mid-tier dependent.&amp;nbsp; At the STP level, the easiest possible way to achieve this would be by setting &lt;STRONG&gt;Content-Encoding: gzip &lt;/STRONG&gt;in the header, using stpsrv_header, as you mention.&amp;nbsp; If you mid-tier supports it, this should cause the delivery to be compressed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2014 16:20:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Compress-gzip-html-file-returned-by-streaming-stored-process/m-p/176296#M4272</guid>
      <dc:creator>FriedEgg</dc:creator>
      <dc:date>2014-10-08T16:20:14Z</dc:date>
    </item>
    <item>
      <title>Re: Compress / gzip html file returned by streaming stored process?</title>
      <link>https://communities.sas.com/t5/Developers/Compress-gzip-html-file-returned-by-streaming-stored-process/m-p/176297#M4273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried:&lt;/P&gt;&lt;PRE&gt;data a ;
&amp;nbsp; array me{10} ; 
&amp;nbsp; do i=1 to 1000 ; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; do j=1 to dim(me) ;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; me{j}=ranuni(0) ; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; end ; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; output ; 
&amp;nbsp; end ;
&amp;nbsp; drop i j ; 
run ;

%let rc=%sysfunc(stpsrv_header(Content-Encoding,gzip));

%stpbegin()
proc print data=a;
run;
%stpend()

&lt;/PRE&gt;&lt;P&gt;And didn't get any results returned at all.&amp;nbsp; And the stored process server logs didn't show any errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Guess that could mean it isn't enabled on the mid-tier.&amp;nbsp; Will have a chat with the admin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Oct 2014 17:36:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Compress-gzip-html-file-returned-by-streaming-stored-process/m-p/176297#M4273</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2014-10-09T17:36:00Z</dc:date>
    </item>
  </channel>
</rss>

