Posts Tagged ‘ SAS macro ’

Using the SAS Macro Language to Create Portable Programs

December 7, 2016
By

As technology expands, we have a similarly increasing need to create programs that can be handed off – to clients, to regulatory agencies, to parent companies, or to other projects – and handed off with little or no modification needed by the recipient. Minimizing modification by the recipient often requires

The post Read more »

Tags: , , , , ,
Posted in SAS | Comments Off on Using the SAS Macro Language to Create Portable Programs

Learn not one, not two, but four languages in SAS

September 21, 2016
By

I started young. Since I was 9 years old, I’ve always loved cooking delicious, tasty and healthy food, and feeding friends and family. My aunt still remembers the delicious chocolate soufflé that trembled and shook but would never collapse that I made for them when I was 18! Word spread.

The post Read more »

Tags: , , , , ,
Posted in SAS | Comments Off on Learn not one, not two, but four languages in SAS

Jedi SAS Tricks – Make This a Button in Base SAS

May 1, 2016
By

A recent post, Jedi SAS Tricks: The DATA to DATA Step Macro, engendered a lot of response on Twitter. One of the re-tweets included a call to action - make this a button in Base SAS! Well, Sam, I aim to please! Now, I'm not the guy who builds the SAS Windowing

The post Read more »

Tags: , , , ,
Posted in SAS | Comments Off on Jedi SAS Tricks – Make This a Button in Base SAS

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

Example 2014.2: Block randomization

January 22, 2014
By

This week I had to block-randomize some units. This is ordinarily the sort of thing I would do in SAS, just because it would be faster for me. But I had already started work on the project R, using knitr/LaTeX to make a PDF, so it made sense to continue the work...
Read more »

Tags: , , , ,
Posted in SAS | Comments Off on Example 2014.2: Block randomization

Importing CSV files into SAS datasets

September 18, 2013
By

Sometimes, your first impulse may not be correct, like trading in your practical sedan for a hot 2-seater.  Other times, your first impulse is perfect, as in the examples below. Suppose the automobile data you wish to analyze resides in a CSV file.  ...
Read more »

Tags: , , ,
Posted in SAS | Comments Off on Importing CSV files into SAS datasets

Coding in the fast lane with data-driven macro calls

March 11, 2013
By

The simple PRINT macro below prints a selected dataset: %macro print(data=&syslast,obs=5); proc print data=&data(obs=&obs); title "%upcase(&data)"; run; %mend print; Suppose you want to print every dataset in the...
Read more »

Tags: , ,
Posted in SAS | Comments Off on Coding in the fast lane with data-driven macro calls

Time to trade in your jalopy macro?

February 11, 2013
By

Suppose you have an old jalopy that's perfectly reliable.  Your jalopy gets you where you wanna go: no frills; no drama. Do you trade your old wheels in for a racecar that accelerates like crazy and corners like it's on rails? Or stick with what's old...
Read more »

Tags: , , , ,
Posted in SAS | Comments Off on Time to trade in your jalopy macro?

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.