Posts Tagged ‘ sas programming ’

Boaty McBoatface is on the run

April 6, 2016
By
Boaty McBoatface is on the run

I know what you're thinking: two "Boaty McBoatface" articles within two weeks? And we're past April Fool's Day? But since I posted my original analysis about the "Name our ship" phenomenon that's happening in the UK right now, a new contender has appeared: Poppy-Mai. The cause of Poppy-Mai, a critically

The post Read more »

Tags: , , , ,
Posted in SAS | Comments Off on Boaty McBoatface is on the run

And it’s Boaty McBoatface by an order of magnitude

March 25, 2016
By
And it’s Boaty McBoatface by an order of magnitude

In a voting contest, is it possible for a huge population to get behind a ridiculous candidate with such force that no other contestant can possibly catch up? The answer is: Yes. Just ask the folks at NERC, the environmental research organization in the UK. They are commissioning a new

The post Read more »

Tags: , , ,
Posted in SAS | Comments Off on And it’s Boaty McBoatface by an order of magnitude

Add files to a ZIP archive with FILENAME ZIP

March 4, 2016
By

In previous articles, I've shared tips about how you can work with SAS and ZIP files without requiring an external tool like WinZip, gzip, or 7-Zip. I've covered: How to create ZIP files with ODS PACKAGE ZIP (available since SAS 9.2) How to "unzip" and read ZIP files using FILENAME

The post Read more »

Tags: , , , ,
Posted in SAS | Comments Off on Add files to a ZIP archive with FILENAME ZIP

One-level data set names in SAS are not always stored in WORK

February 29, 2016
By
One-level data set names in SAS are not always stored in WORK

One of the first things SAS programmers learn is that SAS data sets can be specified in two ways. You can use a two-level name such as "sashelp.class" which uses a SAS libref (SASHELP) and a member name (CLASS) to specify the location of the data set. Alternatively, you can

The post Read more »

Tags: ,
Posted in SAS | Comments Off on One-level data set names in SAS are not always stored in WORK

Create dummy variables in SAS

February 22, 2016
By
Create dummy variables in SAS

A dummy variable (also known as indicator variable) is a numeric variable that indicates the presence or absence of some level of a categorical variable. The word "dummy" does not imply that these variables are not smart. Rather, dummy variables serve as a substitute or a proxy for a categorical

The post Read more »

Tags: , ,
Posted in SAS | Comments Off on Create dummy variables in SAS

SAS knows it’s a leap year. Do you?

February 19, 2016
By

Leap year questions come up all of the time in computing, but if there is any true season for it, it's now. The end of February is approaching and developers wonder: does my process know that it's a leap year, and will it behave properly? People often ask how to

The post Read more »

Tags: , ,
Posted in SAS | Comments Off on SAS knows it’s a leap year. Do you?

Sorting data in SAS: can you skip it?

February 4, 2016
By
Sorting data in SAS: can you skip it?

TL;DR The next time that you find yourself writing a PROC SORT step, verify that you're working with the SAS Base engine and not a database. If your data is in a database, skip the SORT! The details: When to skip the PROC SORT step Many SAS procedures allow you

The post Read more »

Tags: , , ,
Posted in SAS | Comments Off on Sorting data in SAS: can you skip it?

Group processing in SAS: The NOTSORTED option

February 1, 2016
By
Group processing in SAS: The NOTSORTED option

Novice SAS programmers quickly learn the advantages of using PROC SORT to sort data, followed by a BY-group analysis of the sorted data. A typical example is to analyze demographic data by state or by ZIP code. A BY statement enables you to produce multiple analyses from a single procedure

The post Read more »

Tags: , ,
Posted in SAS | Comments Off on Group processing in SAS: The NOTSORTED option

Proc-x is looking for sponsors!

Dear readers, proc-x is looking for sponsors who would be willing to support the site in exchange for banner ads in the right sidebar of the site. If you are interested, please e-mail me at: tal.galili@gmail.com



Welcome!

SAS-X.com offers news and tutorials about the various SAS® software packages, contributed by bloggers. You are welcome to subscribe to e-mail updates, or add your SAS-blog to the site.

SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks of SAS Institute Inc. in the USA and other countries. ® indicates USA registration.