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: miss sas answers, Programming, Uncategorized
Posted in SAS | Comments Off
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: custom, data step, Programming, SAS, SAS Jedi, tips and tricks, Uncategorized
Posted in SAS | Comments Off
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: custom, customizing, Programming, SAS Jedi, tips and tricks, Uncategorized
Posted in SAS | Comments Off
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: Programming, tips and tricks, Uncategorized
Posted in SAS | Comments Off
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: data step, Programming, tips and tricks, Uncategorized
Posted in SAS | Comments Off
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: computed columns, miss sas answers, PROC REPORT, Programming, Uncategorized
Posted in SAS | Comments Off
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: custom, customizing, macro, macros, Programming, tips and tricks, Uncategorized, utility, variable list
Posted in SAS | Comments Off
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: idea, Programming, R, SAS, sas7bdat, sd2, Technical
Posted in SAS | Comments Off