Posts Tagged ‘ Programming ’

Selecting the Second Duplicate Observation

September 19, 2012
By

  Dear Miss SAS Answers, I have read through a few Dear Miss SAS Answers blog posts, but I cannot seem to find what I am looking for. I need to extract only the second duplicate from a whole list of duplicates per account number. Is there a way to...
Read more »

Tags: , ,
Posted in SAS | Comments Off

Jedi SAS Tricks: FUNC(y) Formats

May 10, 2012
By

In the previous episode, we built our own custom SAS function - a masterful trick indeed. Gordon Keener, a developer here at SAS, responded exuberantly "You think that's cool? - try THIS!" and proceeded to demonstrate prodigious powers with the SAS by ...
Read more »

Tags: , , , , , ,
Posted in SAS | Comments Off

Jedi SAS Tricks – Roll Your Own Function

May 3, 2012
By

A SAS user (who lives in the the US) emailed me a question about SAS functions. He was read UTC (Coordinated Universal Time) datetime values from server logs, and to make future calculations and comparisons easier, he wanted to transform the value to ...
Read more »

Tags: , , , , ,
Posted in SAS | Comments Off

Syntactic sugar – 6 SAS essentials

April 12, 2012
By

The 25 boys I teach on Sundays loved these cupcakes I baked for them for Easter… the sugared peeps had them completely satisfied. I love my tea or coffee laced with sugar. I think you‘d all agree that it is always more pleasant to meet a nice custo...
Read more »

Tags: , ,
Posted in SAS | Comments Off

Jedi SAS Tricks: These aren’t the droids… Episode 1

January 13, 2012
By

How the power of the Force makes ridding yourself of problematic characters so much easier! I recently was invited to become an alternate instructor for Ron Cody’s SAS Business Knowledge Series class, "SAS Functions by Example", and had the privilege...
Read more »

Tags: , , ,
Posted in SAS | Comments Off

Calculated values in PROC REPORT Compute Blocks

January 9, 2012
By

Dear Miss SAS Answers, In PROC REPORT can I use one calculated (computed) variable in the calculation of another computed variable? In the example below, I’m trying to use the value of the Bonus column to calculate the Total column:   compu...
Read more »

Tags: , , , ,
Posted in SAS | Comments Off

Jedi SAS Tricks: Building a Name Suffix variable list

November 18, 2011
By

If you’ve taken one of my SAS classes you may recall “Mark’s 3 rules of programming”, the first of which is “Lazy programmers are GOOD programmers.”  One of the things I love about best about SAS programming is the plethora of functions an...
Read more »

Tags: , , , , , , , ,
Posted in SAS | Comments Off

Another Mystery: sas7bdat != sd2

October 14, 2011
By

I received an email from a very inconvenienced statistician a few weeks ago. The problem was an old data file with the extension .sd2. Apparently, this is an obsolete data storage format used by past versions of SAS. A quick glance at the file contents revealed that this sd2 formatted file is incompatible with...
Read more »

Tags: , , , , , ,
Posted in SAS | Comments Off

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.