Posts Tagged ‘ sas programming ’

ERROR 180-322: The story of an error message

August 25, 2016
By

First, if you landed on this topic because you encountered this SAS message: ERROR 180-322: Statement is not valid or it is used out of proper order. ...then I'll tell you right now: you've probably left off a semicolon in one of your SAS statements. If you're lucky, the SAS

The post Read more »

Tags: , , ,
Posted in SAS | Comments Off on ERROR 180-322: The story of an error message

How to send a text message with SAS

August 12, 2016
By
How to send a text message with SAS

A colleague approached me with this very important business problem: Every Friday at SAS HQ, SAS cafe staff provides a breakfast goodie in our breakrooms. Often the supplied goodie is delicious, but sometimes it's more...well...healthy. I want to know whether I should eat my breakfast before I leave home on

The post Read more »

Tags: , , ,
Posted in SAS | Comments Off on How to send a text message with SAS

Use SAS formats to bin numerical variables

August 8, 2016
By
Use SAS formats to bin numerical variables

SAS formats are flexible, dynamic, and have many uses. For example, you can use formats to count missing values and to change the order of a categorical variable in a table or plot. Did you know that you can also use SAS formats to bin a numerical variable into categories?

The post Read more »

Tags: , ,
Posted in SAS | Comments Off on Use SAS formats to bin numerical variables

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

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.