Posts Tagged ‘ sas programming ’

Do you write unnecessary SAS statements?

July 20, 2016
By

I'm addicted to you. You're a hard habit to break. Such a hard habit to break. —  Chicago, "Hard Habit To Break" Habits are hard to break. For more than 20 years I've been putting semicolons at the end of programming statements in SAS, C/C++, and Java/Javascript. But lately I've been

The post Read more »

Tags: , ,
Posted in SAS | Comments Off on Do you write unnecessary SAS statements?

How to read the contents of a file into a SAS macro variable

July 12, 2016
By

I've been working on a SAS program that can add content to the SAS Support Communities (more on that in a future post). Despite my 20+ years of SAS experience, there are a lot of SAS programming tricks that I don't know. Or that I use so infrequently that I

The post Read more »

Tags: , , ,
Posted in SAS | Comments Off on How to read the contents of a file into a SAS macro variable

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

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.