We can’t consider SAS version 9.4 to be “new” any more (it first shipped in July 2013), but if we had the numbers to show it, I’m sure we’d see that less than 50% of customers have upgraded, so it’s worth revisiting 9.4’s attractions.The complexity, ef…
Tag: SAS
Unplanned Sabbatical – NO MORE
So, it’s been a bit quiet in NOTE:land for the last six months. I last wrote in January, and it’s now August.I started the NOTE: blog in July 2009. Since then, up to January, I have posted 459 articles. That’s an average of more than 8 posts per month….
R Passes SPSS in Scholarly Use, Stata Growing Rapidly
by Robert A. Muenchen Here is my latest update to The Popularity of Data Analysis Software. To save you the trouble of reading all 25 pages of that article, the new section is below. The two most interesting nuggets it contains are: … Continue reading →
Support the Blog Author to Bike MS
My dear readers, I’m asking you to support me in Bike MS (Multiple Sclerosis) and I will ride 60 miles to support the campaign in New Bern, NC, September 6 – 7, 2014. As my understanding, one of the purposes of this fundraising, is to let the message spread. MS is a very rare disease. […]
Translate SAS’s sas7bdat format to SQLite and Pandas
- Size reduction:
SAS’s sas7bdat format is verbose. So far successfully loaded 40GB SAS data to SQLite with 85% reduction of disk usage. - Save the cost to buy SAS/ACCESS
SAS/ACCESS costs around $8,000 a year for a server, while SQLite is accessible for most common softwares.
- Pandas’ powerful Excel interface:
Write very large Excel file quickly as long as memory can hold data. - Validation of statistics
Pandas works well withstatsmodels
andscikit-learn
. Easy to validate SAS’s outputs.
Change the process priority in SAS
This SAS code programmatically changes the process priority for the current SAS program. You may want to use this for SAS batch jobs.
For example, when I run multiprocessor jobs using Ian J. Ghent %multiThreadDataStep macro, the Windows user interface becomes less responsive and my batch job competes with other processes, but using this method addresses both issues.
Simply run the line corresponding to the desired priority level. To decrease process priority, choose one of the last two.
x "wmic.exe process where processid=""&SYSJOBID"" call setpriority 'high priority'";
x "wmic.exe process where processid=""&SYSJOBID"" call setpriority 'above normal'";
x "wmic.exe process where processid=""&SYSJOBID"" call setpriority 'normal'";
x "wmic.exe process where processid=""&SYSJOBID"" call setpriority 'below normal'";
x "wmic.exe process where processid=""&SYSJOBID"" call setpriority 'idle'";
Tested on SAS 9.4 on Windows 7 and SAS 9.3 on Windows 2008.
I don’t have SAS for Linux, but I guess it would look like this to increase the niceness and therefore reduce the process priority:
x "renice -p 16 &SYSJOBID";
For more posts like this, see Heuristic Andrew.
A Minimal Set of Resource for SAS Programmers
A friend asked me for some recommendations of SAS books and I hope it would not be too late! If I got the similar inquiries, I will just refer to this post:) It’s not a good idea just to dump every SAS titles to beginners. If only one needed in your bookshelf, I will pick […]
Best Opportunity Ever For SAS Learning: Free Software, Free Online Courses
SAS Institute now offers free SAS software for non-commercial uses which contains everything you need to play with SAS programming: Base (including ODS Graphics) STAT IML SAS/ACCESS® Interface to PC Files (to deal with Excel and such) SAS Studio (which is your new online SAS editor) Note the SAS/Graph is not available but I think […]