Posts Tagged ‘ data step ’

Jedi SAS Tricks: Writing to Text Files from DS2

June 6, 2016
By

A reader posed a question in the comments to an earlier Jedi SAS Trick, asking how to write the results of a DS2 DATA _NULL_ program to a text file. It's an interesting question, as DS2 currently has no text file handling statements or capabilities. Take, for example, this traditional

The post Read more »

Tags: , , , , ,
Posted in SAS | Comments Off on Jedi SAS Tricks: Writing to Text Files from DS2

Jedi SAS Tricks: The DATA to DATA Step Macro

March 11, 2016
By

I was answering questions about SAS in a forum the other day, and it struck me how much easier it is to help folks if they can provide a snippet of data to go along with their program when asking others to help troubleshoot. This makes it easy to run

The post Read more »

Tags: , , , , ,
Posted in SAS | Comments Off on Jedi SAS Tricks: The DATA to DATA Step Macro

Jedi SAS Tricks – Maximum Warp with Hadoop

July 20, 2015
By

I'm gearing up to teach the next "DS2 Programming Essentials with Hadoop" class, and thinking about Warp Speed DATA Steps with DS2 where I first demonstrated parallel processing using threads in base SAS. But how about DATA step processing at maximum warp? For that, we'll need a massively parallel processing

The post Read more »

Tags: , , , , , , ,
Posted in SAS | Comments Off on Jedi SAS Tricks – Maximum Warp with Hadoop

Turn your data set into a DATA step program

January 21, 2013
By
Turn your data set into a DATA step program

Sometimes I need to "disassemble" a SAS data set into a DATA step program. It's kind of like creating a "freeze-dried" version of the data that you can carry around and use anywhere, re-hydrating it in the SAS session where you next need it. Some example uses for this: Build
Read more »

Tags: , , ,
Posted in SAS | Comments Off on Turn your data set into a DATA step program

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 on Jedi SAS Tricks: FUNC(y) Formats

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 on Jedi SAS Tricks: These aren’t the droids… Episode 1

Bad words in SAS – PG rating

October 12, 2011
By

Picture this – a student grabs the Programming 1 textbook, scans it quickly seemingly searching for something specific, and shakes his head indicating an unsuccessful search. He plants himself smack dab in the front row, looks me squarely in the eye,...
Read more »

Tags: , , ,
Posted in SAS | Comments Off on Bad words in SAS – PG rating

How to use SAS DATA step to copy a file from anywhere

June 17, 2011
By

SAS-based processes are critical to many organizations, but sometimes the trickiest part of your job falls into one or both of these activities: Getting stuff from the outside world "into" SAS. (Once it's in SAS, as many of you know, the world is...
Read more »

Tags: , , ,
Posted in SAS | Comments Off on How to use SAS DATA step to copy a file from anywhere

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.

Sponsors





Dear readers, proc-x is looking for sponsors who would be willing to support the site in exchange for banner ads in the right sidebar of the site. If you are interested, please e-mail me at: tal.galili@gmail.com
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.