Help using Base SAS procedures

slow initialization

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 17
Accepted Solution

slow initialization

SAS 9.3 is taking a really long time to initialise (nearly an hour) though the CPU time used is not excessinve (2 seconds). Not sure why, my CPU is not busy, I am not running many apps whilst booting up. It was working fine until yesterday. 

 

An example log:

 

NOTE: This session is executing on the X64_7HOME platform.

 

NOTE: Updated analytical products:

SAS/STAT 9.3_M1, SAS/ETS 9.3_M1, SAS/OR 9.3_M1

NOTE: SAS initialization used:
real time 46:06.03
cpu time 2.00 seconds

 

Any advice gratefully received!

 


Accepted Solutions
Solution
‎01-28-2016 12:11 PM
Community Manager
Posts: 2,761

Re: slow initialization

If you can, add -NOPRNGETLIST to your SAS config file (or SAS.exe command, as a test) to see if it helps.

View solution in original post


All Replies
Super User
Posts: 5,257

Re: slow initialization

"It was working fine until yesterday"

So what has changed?

If you don't know (OS updates?), virus...?

Try to do a search on the whole/all drives for changed files since the last 1-2 days.

Sometimes when things take long time it can depend on low memory (RAM and/or disk).

 

 

Data never sleeps
Occasional Contributor
Posts: 17

Re: slow initialization

Thank you. The only recent (last 7 days) update has been for Microsoft Office (I am running SAS on Windows). I upgraded to WIndows 10 two weeks ago, but haven't had a problem until now.

Super User
Posts: 5,257

Re: slow initialization

So you have no other file changes throughout all your drives? Including system files.

Data never sleeps
Occasional Contributor
Posts: 17

Re: slow initialization

I will search my drives for changes. I've also started to uninstall recently added apps. I realised that although I noticed the problem with SAS yesterday, I'd not used it for 3 days prior. 

Super User
Posts: 6,939

Re: slow initialization

I take it this is not a production machine, as SAS 9.3 on Windows 10 is not supported by SAS.

My first idea is therefore to go back to the previous Windows version. The other is to quickly upgrade to SAS 9.4, which is supported on Windows 10.

Apart from that, one hour start-up for something that should be finished (at worst) in seconds without any effects at the side (constantly lit disk activity indicator, for instance) points me to something like virus infection or a problem with anti-vrius software that takes forever scanning the executable. And ant-virus SW is usually updated daily without notice to the user. so it could be the culprit.

 

Man, am I happy to work with a Real Operating System (AIX) on the server side.

 

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
Super User
Posts: 3,108

Re: slow initialization

SAS 9.4 TS1M3 and higher is supported on Windows 10:

 

http://support.sas.com/supportos/list

 

There have been reports that earlier releases of SAS still work if installed under an earlier Windows release that is upgraded to 10.

 

I suggest you upgrade to SAS 9.4 TS1M3, the officially supported release to see if that fixes your problem. 

 

 

Occasional Contributor
Posts: 17

Re: slow initialization

Thanks all,

 

it appears there is a common fault in Windows 10 locking up the hard drive, pinning it at 100% usage. I am in the process of addressing this issue. I will also upgrade to SAS 9.4. 

 

Super User
Posts: 6,939

Re: slow initialization

Any Windows release before SP2 (or whatever it's called in a particular version) has to be called experimental. Was also true for DOS in the old times. Wait another two years before migrating to Windows 10.

Our company did the switch to Windows 7 from XP just last year. 7 seems to be reasonably stable, but we don't use Windows on servers at all.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
Occasional Contributor
Posts: 17

Re: slow initialization

new development. I have restored my PC to a previous point, which has not fixed the problem. I have now installed SAS 9.4, but am encountering the same issue. Through a process of trial and error, I have realised that the problem occurs when I am connected to wifi. As soon as I turn airplane mode on and disconnect, it works fine. I guess there is some sort of conflict between SAS and a connection setting/ issue? I've updated my wifi driver etc. still no use.

 

Community Manager
Posts: 2,761

Re: slow initialization

Run

 

proc options; run;

And check the log for references to network paths or printers.  Especially printers.

 

You might need to adjust your config file/startup to remove such references. 

Community Manager
Posts: 2,761

Re: slow initialization

Another related thing you could try: Add
-NOPRNGETLIST
to your config startup options.

See: http://support.sas.com/documentation/cdl/en/hostwin/67962/HTML/default/viewer.htm#n1ubc2v3gsus7un1c1...
Occasional Contributor
Posts: 17

Re: slow initialization

Hi. Thanks for the reply. I've run proc options, and the references to printers in the log are shown below. I can't see any reference to network paths in the log. I must admit, I'm not entirely sure what I am looking for. 

 

 

PRINTERPATH= Printer path
NOPRINTINIT Do not initialize procedure output file
PRINTMSGLIST Print extended lists of messages

 

PRINT= Specifies the destination for SAS output in batch or noninteractive mode
PRNGETLIST Enable listing of the system printers. The SAS system will discover printers
installed on the system.

 

Solution
‎01-28-2016 12:11 PM
Community Manager
Posts: 2,761

Re: slow initialization

If you can, add -NOPRNGETLIST to your SAS config file (or SAS.exe command, as a test) to see if it helps.
Occasional Contributor
Posts: 17

Re: slow initialization

Thanks!!! 

 

I altered the .cfg file and SAS opened straight away. I will alter the cfg for 9.4 as well to see if that sorts that too. I don't understand why it became a problem, when SAS has always worked fine previously (I have never altered a .cfg file before). Could it due to changing from WIndows 8 to WIndows 10?

 

Anyway, very much appreciate the advice- working offline was not a practical solution to the issue. 

☑ This topic is SOLVED.

Need further help from the community? Please ask a new question.

Discussion stats
  • 15 replies
  • 1294 views
  • 2 likes
  • 5 in conversation