BookmarkSubscribeRSS Feed
Quentin
Super User

Hi All,

Suppose I have a stored process invoked through stored process web app which returns streaming results.  In this case, the results are a very big HTML file from a distant server.  And it takes a long time to reach the user.

I have seen that some web servers are configured to compress .html files before they are sent to the user, to decrease transfer times.  (Understanding there is also a cost to taking the time to compress at the server and uncompress at the browser).

In the SAS BI setting with the stored process server, is it possible to configure the server so that html files will be compressed?  Or is this something I can turn on some other way at the stored process level (e.g. via stsprv_header) ?

(I realize another option would be to change to deliver package results.)

Thanks,

--Q.

The Boston Area SAS Users Group (BASUG) is hosting our in person SAS Blowout on Oct 18!
This full-day event in Cambridge, Mass features four presenters from SAS, presenting on a range of SAS 9 programming topics. Pre-registration by Oct 15 is required.
Full details and registration info at https://www.basug.org/events.
2 REPLIES 2
FriedEgg
SAS Employee

It is mid-tier dependent.  At the STP level, the easiest possible way to achieve this would be by setting Content-Encoding: gzip in the header, using stpsrv_header, as you mention.  If you mid-tier supports it, this should cause the delivery to be compressed.

Quentin
Super User

Thanks,

I tried:

data a ;
  array me{10} ; 
  do i=1 to 1000 ; 
    do j=1 to dim(me) ;
      me{j}=ranuni(0) ; 
    end ; 
    output ; 
  end ;
  drop i j ; 
run ;

%let rc=%sysfunc(stpsrv_header(Content-Encoding,gzip));

%stpbegin()
proc print data=a;
run;
%stpend()

And didn't get any results returned at all.  And the stored process server logs didn't show any errors.

Guess that could mean it isn't enabled on the mid-tier.  Will have a chat with the admin.

The Boston Area SAS Users Group (BASUG) is hosting our in person SAS Blowout on Oct 18!
This full-day event in Cambridge, Mass features four presenters from SAS, presenting on a range of SAS 9 programming topics. Pre-registration by Oct 15 is required.
Full details and registration info at https://www.basug.org/events.

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 1474 views
  • 4 likes
  • 2 in conversation