BookmarkSubscribeRSS Feed
Quentin
Super User

[cross-posting from the stored process community, as it's an ODS question really]

 

Hi All,

 

I've got a stored process that generates an html table via tagsets.tableeditor.  The table has about 1,000 rows, and it is filterable, sortable, etc. The stored process executes quickly enough.  But when I run it via Internet Explorer 11, it takes about 15 seconds to load (interpret?) the html.  If I run it in chrome, it loads in less than 1 second.

 

If I turn off options for  frozen headers and autofilter, it loads much more quickly in IE, but then I've lost that functionality.

 

Is it just a problem that IE 11 is really slow at interpretting some of the scripting generated by the tagset?  Or could there be some security settings in my (corporate-managed) version of IE that are slowing this down dramatically?

 

I found this paper which mentions that frozen_rowheaders dramatically slows things down when tables have >700 records.  http://support.sas.com/resources/papers/proceedings12/146-2012.pdf .  So assuming it's related.

 

Sample code is below.  I'm running SAS 9.3 on linux with most recent version of the tagset (V3.14  3/2/2015).  If anyone else would care to test it, I'd be thrilled.

 

 

data have;
  array x{10};

  do id=1 to 1000;
    do i=1 to dim(x);
      x{i}=ranuni(0);
    end;
    output;
  end;
  drop i;
run;

ods tagsets.tableeditor 
    style=journal
    body=_webout
    options(
            frozen_headers="yes"
            autofilter="yes"
            Sort="yes"
            Sort_Arrow_Color="brown"
            banner_color_even="white"
            banner_color_odd="#eeeeee"
            )
; 
proc print data=have noobs;
  var id x1-x10;
run;
ods tagsets.tableeditor close;

 

 

Thanks,

-Q.

BASUG is hosting free webinars Next up: Mike Sale presenting Data Warehousing with SAS April 10 at noon ET. Register now at the Boston Area SAS Users Group event page: https://www.basug.org/events.
3 REPLIES 3
Reeza
Super User

I can confirm an issue...not sure if that helps though 😞

 

I did get an initial warning about ActiveX controls and the initial load was slow, I almost thought the filter wasn't present.

Quentin
Super User

Thanks @Reeza.  I get a similar warning if I just write the file out locally and open the file.  In my real data, I've had a blank browswer page for a few minutes, and then suddenly it appears.  Or the table appears without the autofilter, which appears at the end.  Which I guess makes sense, because IE is loading the page as it gets the HTML stream, and scripts for the filtering etc is all at the end.

 

It's just SOO much faster in chrome.  I thought maybe it was my security settings in IEs since it's fairly strict.  But if it's happening for you too, that's less likely the cause.  Maybe I'll try tech support and see if I get lucky and end up with Chevell on the phone. : )

BASUG is hosting free webinars Next up: Mike Sale presenting Data Warehousing with SAS April 10 at noon ET. Register now at the Boston Area SAS Users Group event page: https://www.basug.org/events.
Reeza
Super User

I'm in a pretty locked down environment as well (Gov't) so it may be IE security settings.

 

If you're feeling adventurous I sometimes use BrowserStack to test my code on a different system.

 

They offer a free trial to test it out 🙂

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

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
  • 3 replies
  • 868 views
  • 1 like
  • 2 in conversation