Tag: DS2

Using SAS DS2 to parse JSON

Thanks to the proliferation of cloud services and REST-based APIs, SAS users have been making use of PROC HTTP calls (to query these web services) and some creative DATA step or PROC GROOVY code to process the JSON results. Such methods get the job done (JSON is simply text, after […]

The post Using SAS DS2 to parse JSON appeared first on The SAS Dummy.

SAS MapReduce: A Quick Followup by DS2

(DS2 would be the king!) Years ago I made up a piece of SAS code to demonstrate the basic idea of Map-Reduce. Now this idea can be best implemented by this piece of workable program with PROC DS2 (tested in SAS 9.4 TS1M2, Win7): PROC DS2; /* create some data –*/ data input_data / overwrite […]

A Quick Look at SAS DS2 Merge

The code: data a;     input i a $ b $;     datalines;     1 a1A b1     1 a1A b1     2 a2 b2     ; run; data b;     input i a $ c $;     datalines;     1 a1C c1     2 .   c2     3 .  c3     ; run; data […]

Jedi SAS Tricks – Maximum Warp with Hadoop

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 Jedi SAS Tricks – Maximum Warp with Hadoop appeared first on The SAS Training Post.

Jedi SAS Tricks: Finding Tattoine with DS2

NASA’s Kepler mission has discovered a world where two suns set over the horizon instead of just one. The planet, called Kepler-16b, is the most “Tatooine-like” planet yet found in our galaxy.” While catching up on my reading, this article from NASA’s …