Tag: SAS programmers

Standardizing phone numbers using SAS

How many times have you entered a phone number on a web page, only to be told that you did not type it the “correct” form? I find that annoying. Don’t you? In my latest book, Cody’s Data Cleaning Techniques, 3rd edition, I show how to convert a phone n…

Take that SAS option

Elizabeth is courageous. Scoliosis since birth, corrective spinal surgery replaced her spine with steel, tripping on stairs permanently broke her right ankle. Then she decided to come take yoga with me. To help ease back pain & reduce hip stress, I offered options like bent legs not cross. In class […]

The post Take that SAS option appeared first on SAS Learning Post.

Capturing output from any procedure with an ODS OUTPUT statement

There’s an old song that starts out, “You Can Get Anything You Want at Alice’s Restaurant.”  Well, maybe you are too young to know that song, but if you’re a SAS users, you’ll be glad to know that you can capture anything produced by any SAS procedure (even if the […]

The post Capturing output from any procedure with an ODS OUTPUT statement appeared first on SAS Learning Post.

Exploring the content of the DICTIONARIES table and VSVIEW SASHELP view

SAS® users have an easy and convenient way to quickly obtain useful information (referred to as metadata) about their SAS session with a number of read-only SAS DICTIONARY tables or SASHELP views. At any time during a SAS session, information about currently defined system options, libnames, tables, columns and their […]

The post Exploring the content of the DICTIONARIES table and VSVIEW SASHELP view appeared first on SAS Learning Post.

Transitioning from programming in SAS 9 to SAS Viya

Editor’s note: This is the first in a series of posts to help current SAS programmers add SAS Viya to their analytics skillset. In this post, SAS instructors Stacey Syphus and Marc Huber introduce you to the new Transitioning from Programming in SAS 9 to SAS Viya video library, designed to show SAS programmers […]

The post Transitioning from programming in SAS 9 to SAS Viya appeared first on SAS Learning Post.

Stratified random sample: What’s efficient?

In a previous blog, Random Sampling: What’s Efficient?, I discussed the efficiency of various techniques for selecting a simple random sample from a large SAS dataset.  PROC SURVEYSELECT easily does the job: proc surveyselect data=large out=sample method=srs /* simple random sample */ rate=.01; /* 1% sample rate */ run; Note: […]

The post Stratified random sample: What’s efficient? appeared first on SAS Learning Post.

SAS Temporary Arrays, Not Just for Experts

SAS temporary arrays are an underutilized jewel in the SAS toolbox. I find that many beginning to intermediate SAS programmers are not familiar with temporary arrays. The good news is that there is nothing complicated about them and they are very useful. First of all, what is a temporary array? […]

The post SAS Temporary Arrays, Not Just for Experts appeared first on SAS Learning Post.