Category: SAS

Best gasoline prices for your holiday travels

Gasoline prices are a lot lower than they’ve been the past few years, but the price fluctuates so much that it’s difficult to tell whether you’re getting a good deal. Perhaps these SAS graphs & maps will help you get a handle on it, so you’ll know a good deal […]

The post Best gasoline prices for your holiday travels appeared first on SAS Learning Post.

The road to SAS Global Forum: A training Q&A series 2

We continue to ready ourselves for this year’s SAS Global Forum coming up next month. On Monday, April 18, there will be two SAS Certification testing events. Then after the conference wraps up, SAS training instructors will be offering unique, hands-on training that you won’t find anywhere else. In this […]

The post The road to SAS Global Forum: A training Q&A series 2 appeared first on SAS Learning Post.

Does E85 fuel save you money or cost more?

I recently bought a vehicle that has FlexFuel capability and can use E85 (mostly ethanol) fuel. But can you guess whether it is more economical for me to use E85, or regular gasoline? Read the SAS analysis below to see if you guessed right! I’ve been the happy owner of […]

The post Does E85 fuel save you money or cost more? appeared first on SAS Learning Post.

SAS Author Spotlight: Art Carpenter

Did you know one of the attendees’ favorite events at SAS Global Forum is to meet our bestselling authors? This year at SAS Global Forum 2016 we are planning a “Top Tips from Your Favorite SAS Press Authors” lunch where we will ask 3 or 4 authors to present a top tip […]

The post SAS Author Spotlight: Art Carpenter appeared first on SAS Learning Post.

The road to SAS Global Forum: A training Q&A series

Many of us here at SAS are hustling to prepare for SAS Global Forum set to begin April 18 in Las Vegas. This year’s agenda is shaping up to be a “can’t-miss” event. Monday, before SAS Global Forum begins, there are two SAS Certification testing events. Then after the conference […]

The post The road to SAS Global Forum: A training Q&A series appeared first on SAS Learning Post.

In case of error in SAS program, send email and stop

Any automated program should check for errors and unexpected conditions, such as inability to access a resource and presence of invalid values. Unlike traditional programming languages such as Python and C# that stop processing when an error occurs, SAS barrels ahead through the rest of the program. Therefore, carelessly-written SAS programs can create unwanted side effects, such as overwriting an output data set with bad data.

Previously I wrote about a robust solution for checking SAS error codes which wraps the entire program in a macro and invokes %GOTO EXIT in case an error. This is still the ideal solution when some part of the program must continue, but it comes at a cost: wrapping SAS code in a macro disables syntax highlighting in the SAS Enhanced Editor (though not in SAS Studio). Also, it can be awkward to work with the large code block delimited by the macro, so this post focuses on two alternatives.

Read more »

For more posts like this, see Heuristic Andrew.

Linking analytics outcomes to return on investment

In my SAS Press book Business Statistics Made Easy in SAS® I place a strong focus on the skill of extrapolating analytics/statistical outcomes to key business implications (similar techniques can be used to link statistics to other key societal outcomes). Unfortunately, business analytics often stops short of defining the impact […]

The post Linking analytics outcomes to return on investment appeared first on SAS Learning Post.

How to graph NBA data with SAS

People have always been fascinated by sports statistics, and with the recent popularity of fantasy sports there is an increased demand for custom analyses of the sports data. With those folks in mind, I have created a simple example that SAS programmers can use as a starting point for analyzing NBA […]

The post How to graph NBA data with SAS appeared first on SAS Learning Post.