BookmarkSubscribeRSS Feed
Marmar
Calcite | Level 5

Hi all,

 

I've got problem with SAS performance on my PC. When processing big data, it works very slow. At first, it shows the message of SAS not responding then after minute, the results are displayed! I've tried to increase the limit of memory by the syntax of : -Memsize=n but got error!

Any comment on this problem would be appreciated greatly.

 

Thank you 

10 REPLIES 10
ChrisBrooks
Ammonite | Level 13

Try -memsize=max in the SAS invocation from the command line (this gives SAS as much memory as it needs subject to what is available on your machine).

ChrisNZ
Tourmaline | Level 20

@ChrisBrooks this gives SAS as much memory as it needs subject to what is available on your machine

 

MEMSIZE includes paging space, so is pretty much illimited. 

REALMEMSIZE is the setting used to control RAM usage.

The documentation is confusing.

 

Marmar
Calcite | Level 5
Hi,

Thank you for your comment and sorry for delay in replying!.

I've tried REALMEMSIZE as well but got no improvement.

Thanks,
Maryam
Marmar
Calcite | Level 5
Hi,

Thank you for your reply and sorry for delay in replying your message!.

I've tried -memsize=max on the command line but got this error message:

3 -MEMSIZE=max;
-
180

ERROR 180-322: Statement is not valid or it is used out of proper order.

I'm just wondering if I've written the syntax properly or there is another
solution?


Thank you,
Marmar
Astounding
PROC Star

Speed can depend on many factors, and memory is only one of those.  (Unfortunately, poor programming technique ranks high on the list.)  If you want more specific advice, post the log of a slow-running program.

Marmar
Calcite | Level 5
Hi,

Thank you for your comment and sorry for delay in replying!.

Actually, I don't get any message error on the log, just the software works
slowly when running a command of Proc Print a data file of about 64,000 and
I see the message on top of page indicating SAS not responding. Then after
a while it process the command and get the results!


Thanks,
Marmar
Astounding
PROC Star

This may not solve the entire problem, but there are options on PROC PRINT that force SAS to look through the entire data set twice.  You didn't post the log, so I can't see what options you used.  Try adding a FORMAT statement that applies a format to all 6 variables, and see how much impact that has.

ballardw
Super User

Is your data on your machine or a remote location and accessed over a network? Network traffic can have an impact.

How "big" is big? Number of records and variables.

Also, are using a stand alone version of SAS or connecting to a SAS server?

 

How did you attempt to use  -Memsize=n? It would have to be either in the SAS configuration file or on a command line/ program object as the option must be set at start up and cannot be changed while running. In a server environment the Admin of the server would control users memsize.

Marmar
Calcite | Level 5
Hi,

Thank you for your comment and sorry for delay in replying!.

I'm using SAS on the PC and data file is stored on my machine which
containing about 64,000 with 20 variables. Actually, I just get error with
the command of Proc Print and the number of variable about 6. I see no
error message on the Log, just see the message on top indicating SAS not
responding. After few minutes the command is running and get the results.

I used -Memsize=max before programming!


Marmar

hashman
Ammonite | Level 13

Proc PRINT against a data set like what you described takes no more than 500 kilobytes of memory. Since I can't imagine your computer having less than 1 gigabyte of memory, i.e. at least 2000 times more than you need, poor performance you're observing has nothing to do with insufficient memory and lies elsewhere. For example, If you're printing all 64,000 observations (can't imagine whey that would be necessary), you may want to check if the destination to which you're sending the output isn't somehow constrained. 

 

Paul D.

 

   

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
  • 10 replies
  • 1035 views
  • 3 likes
  • 6 in conversation