Learning SAS? Welcome to the exclusive online community for all SAS learners.

how to improve speed on SAS studio university edition?

Reply
Occasional Contributor
Posts: 5

how to improve speed on SAS studio university edition?

I am using a 2013 macbook air (2 gig ram), on virtual box.  When I run a simple program, it seems to be pretty slow.  i,e the following program takes about 30 to 45 seconds to complete. Sometimes more, it seems to be inconsistent.  Is this because of internet connection, or because of my machine?  Is there anything I can do to improve the speed?

data highchol;

  set sashelp.heart;

  where Chol_Status = "High";

  run;

  proc print data=highchol;

  run;

Trusted Advisor
Posts: 3,213

Re: how to improve speed on SAS studio university edition?

You could have a problem of "thrashing" in fact due to low memory the only activity being done is swapping memory in and out with no real progress.

---->-- ja karman --<-----
Occasional Contributor
Posts: 5

Re: how to improve speed on SAS studio university edition?

Would this be an issue of my pc, or is there a way to fix it?  there are situations when I hit the "run" and either doest run, or takes 5 to 10 minutes.

Trusted Advisor
Posts: 3,213

Re: how to improve speed on SAS studio university edition?

You have 2 GB of memory and apples os has to run, the Linux in vom has to run and sas has to run.

What would you think if just Linux vm and sas in minimum are happy with 4Gb.

http://en.m.wikipedia.org/wiki/Thrashing_(computer_science)

---->-- ja karman --<-----
Super User
Posts: 19,802

Re: how to improve speed on SAS studio university edition?

Its the proc print / display generation that takes the time, so if you can, avoid doing that. This makes some sense as generating the display file does have extra overhead and it is larger, around 1800 records.

Instead navigate to the work library and look at the file by opening it or print only a subset of the data.

1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;

42 ;

43 data highchol;

44 set sashelp.heart;

45 where Chol_Status = "High";

46 run;

NOTE: There were 1791 observations read from the data set SASHELP.HEART.

  WHERE Chol_Status='High';

NOTE: The data set WORK.HIGHCHOL has 1791 observations and 17 variables.

NOTE: DATA statement used (Total process time):

  real time 0.01 seconds

  cpu time 0.02 seconds

  

47 

48 proc print data=highchol;

49 run;

NOTE: There were 1791 observations read from the data set WORK.HIGHCHOL.

NOTE: The PROCEDURE PRINT printed pages 1-42.

NOTE: PROCEDURE PRINT used (Total process time):

  real time 26.51 seconds

  cpu time 26.29 seconds

Ask a Question
Discussion stats
  • 4 replies
  • 1094 views
  • 0 likes
  • 3 in conversation