Posts Tagged ‘ sas programming ’

Assign a SAS library to a different path depending on your OS

June 24, 2016
By

One thing that we have a lot of at SAS: installations of SAS software that we can run. I have SAS for Windows on my laptop, and I have access to many centralized instances of SAS that run on Linux and Windows servers. (I also have access to mainframe SAS,

The post Read more »

Tags: , ,
Posted in SAS | Comments Off on Assign a SAS library to a different path depending on your OS

The SELECT statement in the SAS DATA step

June 20, 2016
By
The SELECT statement in the SAS DATA step

Every beginning SAS programmer learns the simple IF-THEN/ELSE statement for conditional processing in the SAS DATA step. The basic If-THEN statement handles two cases: if a condition is true, the program does one thing, otherwise the program does something else. Of course, you can handle more cases by using multiple

The post Read more »

Tags: , ,
Posted in SAS | Comments Off on The SELECT statement in the SAS DATA step

My one PROC REPORT wish

June 9, 2016
By

The one thing, above all others, that I wish PROC REPORT could do is know which observations from my data set that I want kept together on a single page of non-Listing output.  This is problematic for two reasons.  1. PROC REPORT cannot read my mind!  2. PROC REPORT does

The post Read more »

Tags: , , ,
Posted in SAS | Comments Off on My one PROC REPORT wish

What’s Your SAS Interface?

May 12, 2016
By
What’s Your SAS Interface?

These days SAS programmers have more choices than ever before about how to run SAS.  They can use the old Display Manager interface, or SAS Enterprise Guide, or the new kid on the block: SAS Studio.  All of these are included with Base SAS. Once upon a time, the only choices were Display Manager...
Read more »

Tags: , , , , , , ,
Posted in SAS | Comments Off on What’s Your SAS Interface?

What is a DATA step view and why is it important?

May 9, 2016
By
What is a DATA step view and why is it important?

Last week I analyzed 12 million records of taxi cap transactions in New York City. As part of that analysis, I used a DATA step view to create a new variable, which was the ratio of the tip amount to the fare amount. A novice SAS programmer told me that

The post Read more »

Tags: ,
Posted in SAS | Comments Off on What is a DATA step view and why is it important?

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

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.

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
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.