Category: SAS

How to share your SAS knowledge with your professional network

As you might have heard, sasCommunity.org — a wiki-based web site that has served as a user-sourced SAS repository for over a decade — is winding down. This was a difficult decision taken by the volunteer advisory board that runs the site. However, the decision acknowledges a new reality: SAS […]

The post How to share your SAS knowledge with your professional network appeared first on The SAS Dummy.

Timeline of all the U.S. presidents

I was recently reading the Wikipedia page about the U.S. presidents. There was a table with a lot of interesting data, but I thought it would be much easier to get a handle on the information if there was also a timeline graph. So, of course, I set out…

Tricks for importing text files in SAS Enterprise Guide

I’m a big fan of the Import Data task in SAS Enterprise Guide, especially for its support of text-based files (CSV, tab delimited, fixed width, and more). There’s no faster method for generating SAS code that reads your data exactly the way you need it. I use the tool so […]

The post Tricks for importing text files in SAS Enterprise Guide appeared first on The SAS Dummy.

Make contents in legend in ASCENDING order

Include the GROUPORDER=ASCENDING option in the VBARPARM statements.  For example:vbarparm category=subject response=&var /       group=&group datalabel=&byvar dataskin=pressed datalabelattrs=(size=6 weight=bold…

Who was the oldest US president?

Donald Trump is pretty spry and energetic for an old guy – he’s currently 71 years old, and seems to have more energy than I do (and I’m about 20 years his junior). But is he the oldest US president? Well, as with many questions … it depends. Follow …

Yes – Wednesday is M&M day at SAS!

Some people might think it’s an urban legend that SAS gives its employees free M&M’s. Well, I’m here to tell you it’s true! Every Wednesday at the Cary headquarters, a bucket of M&M’s shows up in each of the break rooms. I’m only half-kidding i…

Jedi SAS Tricks: Pattern Search in DS2

Finding a pattern like a phone number or national ID number embedded in text can be difficult and time consuming. The traditional DATA step has a family of functions (collectively referred to as PRX functions) that allow using Perl regular expressions …

What fuel is 1000 times dirtier than diesel?

I recently read an interesting article about petroleum coke (petcoke). A lot of it is produced in the US, and lately a lot of it is consumed (burned) in India … contributing to air pollution there. The article mentioned some numbers in the text, but …