Posts Tagged ‘ sas programming ’

Five things you (probably) don’t know you can do with a hash table

August 9, 2018
By

Hash tables are a very powerful and flexible data structure. Most SAS applications of hash tables focus on just one of their many powerful facilities: table lookup. Hash tables are a fantastic table lookup tool and their use for that should never be di...
Read more »

Tags: , , ,
Posted in SAS | Comments Off on Five things you (probably) don’t know you can do with a hash table

Meaningful names for columns of a design matrix

July 30, 2018
By
Meaningful names for columns of a design matrix

A programmer recently asked a question on a SAS discussion forum about design matrices for categorical variables. He had generated a design matrix by using PROC GLMMOD and wanted to use the design columns in a subsequent procedure. However, the columns were named COL1, COL2, COL3,..., so he couldn't tell

The post Read more »

Tags: , ,
Posted in SAS | Comments Off on Meaningful names for columns of a design matrix

What DS2 can do for the DATA step

July 16, 2018
By

The Base SAS DATA step has been a powerful tool for many years for SAS programmers. But as data sets grow and programmers work with massively parallel processing (MPP) computing environments such as Teradata, Hadoop or the SAS High-Performance Analytic...
Read more »

Tags: , , ,
Posted in SAS | Comments Off on What DS2 can do for the DATA step

Using %IF-%THEN-%ELSE in SAS programs

July 5, 2018
By

SAS programmers have long wanted the ability to control the flow of their SAS programs without having to resort to complex SAS macro programming. With SAS 9.4 Maintenance 5, it's now supported! You can now use %IF-%THEN-%ELSE constructs in open code. This is big news -- even if it only

The post Read more »

Tags: , , ,
Posted in SAS | Comments Off on Using %IF-%THEN-%ELSE in SAS programs

Custom Maps in SAS Visual Analytics: My Neighborhood

June 29, 2018
By

The Geo Map Visualization has several built-in geographical units, including country and region names and codes, US state names and codes, and US zip codes. You can also define your own geographic units. This paper describes how to identify any geogra...
Read more »

Tags: , , , , ,
Posted in SAS | Comments Off on Custom Maps in SAS Visual Analytics: My Neighborhood

Changing font size in SAS

June 18, 2018
By

When making a new piece of code, I like to use the smallest font I can read. This lets me fit more text on the screen at once. When presenting code to others, especially in a classroom setting, I like to make the font large enough to see from the back...
Read more »

Tags: , , , , , , ,
Posted in SAS | Comments Off on Changing font size in SAS

Video: New random number generators in SAS

June 15, 2018
By

My 2018 SAS Global Forum paper was about "how to use the random-number generators (RNGs) in SAS." You can read the paper for details, but I recently recorded a short video that summarizes the main ideas in the paper. In particular, the video gives an overview of the new RNGs

The post Read more »

Tags: , , ,
Posted in SAS | Comments Off on Video: New random number generators in SAS

6 ways to use the _NULL_ data set in SAS

June 11, 2018
By

In SAS, the reserved keyword _NULL_ specifies a SAS data set that has no observations and no variables. When you specify _NULL_ as the name of an output data set, the output is not written. The _NULL_ data set is often used when you want to execute DATA step code

The post Read more »

Tags: , ,
Posted in SAS | Comments Off on 6 ways to use the _NULL_ data set in SAS

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.