Tag: SAS

Pivot tables and Cheezy Graphs? No more…

As any good analyst knows, working with data is not the problem. Good analysts have the skill necessary to combine, split, merge, slice, aggregate, or summarize data any way you can imagine. However, is that enough? Probably not.. What good does data do if you can’t communicate its meaning in a logical way. The day […]

SAS needs to fix Excel import for fields greater than 255 characters

I have a spreadsheet where one column has character lengths ranging from 0 to 1000 or even more. Importing them has never been much of a problem with this code:

PROC IMPORT DATAFILE=”F:\path\to\file.xls”OUT=work.aDBMS=excel2002 REPLACE;SHEET=”Sheet1″;…

R AnalyticFlow

R AnalyticFlow seems to be a nice tool to have a good overview over the analysis. The same kind of mode is available in Orange and SAS Enterprise Guide. I have not tried it yet, though. Does anyone have any experiences with it?Update on 2010-07-31: the…

Setting the HTML title tag in SAS ODS (the right way)

In our department and various places on the Intertubes, SAS programmers set the HTML title tag (which sets the title in web browsers and on search engines) in ODS using the headtext option: ods html headtext="<title>My great report</tit…

Funny SAS Post – SAS on the Wii

It’s an older post, but I didn’t see it until now.  It’s worth reblogging about.  SAS talks about SAS on the Wii.

SAS – Lowercase (lowcase) / Uppercase (upcase) / Proper Case (propcase)

We can’t stress the importance handling character case correctly. Here are the two functions you need to know and use correctly. In order to convert all characters in a sting to lowercase, use the LOWCASE function. Example: data ds_2; set ds_1; *convert it to lowercase; new_char_var=lowcase(OLD_CHAR_VAR); run; In order to convert all characters in a […]

DO Loops: Part Deux (It’s a pun. Get it?)

For Part II in this series of posts on DO Loops in SAS, I wanted to discuss an application slightly more complex than the previous example. Loops can not only be used to perform data correction (as shown in the previous post), but can also be very useful in creating new records where none exist. […]

DO Loops: Useful Tool in SAS User’s Toolbox

DO Loops in SAS are outside the scope of what most beginning users feel comfortable tackling. However, they are a powerful, time-saving tool in the report writer’s toolbox. For those unfamiliar with programming, loops are a set of instructions that the programmer tells the computer to repeat until predefined condition(s) are true. It’s a simple […]