Tag: sas programming

Ten SAS Enterprise Guide program editor tricks

If you spend a lot of time in SAS Enterprise Guide (as I do), you probably get to know its features pretty well. But we don’t always take the time to explore as we should, so there might be a few golden nuggets of editor knowledge that have escaped you […]

The post Ten SAS Enterprise Guide program editor tricks appeared first on The SAS Dummy.

How to perform an operation on all numeric or all character variables in a SAS data set

In a previous blog, I demonstrated a program and macro that could identify all numeric variables set to a specific value, such as 999. This blog discusses an immensely useful technique that allows you to perform an operation on all numeric or all chara…

Keeping your data set clean: Integrity constraints

When I teach my Data Cleaning course, the last topic I cover in the two-day course is SAS Integrity Constraints.  I find that most of the students, who are usually quite advanced programmers, have never heard of Integrity Constraints (abbreviated ICs).  I decided a short discussion on this topic would […]

The post Keeping your data set clean: Integrity constraints appeared first on SAS Learning Post.

Using regular expressions to verify the pattern of character data

Wait!  Don’t close this window.  I understand that regular expressions can be very complicated (yes, there are many books on the subject), but some basic expressions to test patterns such as zip codes or telephone numbers are not that difficult.  In addition, you can sometimes use Google to search for […]

The post Using regular expressions to verify the pattern of character data appeared first on SAS Learning Post.

Create and run SAS code in SAS Add-In for Microsoft Office

When SAS Add-In for Microsoft Office was first created over a decade ago, SAS programmers were told to check their skills at the door. This new product was for non-programmers only. SAS programmers were invited to contribute to the experience by packaging their code in SAS stored processes, which end […]

The post Create and run SAS code in SAS Add-In for Microsoft Office appeared first on The SAS Dummy.

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.

The Little SAS Program’s Big Night Out

The little SAS program’s official name was Extract_Transform_Load_ 0314.sas.  But, that name was much too formal, way too long, and did not roll off of the tongue very easily at all.  So, everybody simply called her:  ETL Pi. ETL Pi was conceived in a 2-hour project strategy meeting in conference […]

The post The Little SAS Program’s Big Night Out appeared first on SAS Learning Post.

Determining the size of a SAS data set

When developing SAS® data sets, program code and/or applications, efficiency is not always given the attention it deserves, particularly in the early phases of development. Since data sizes and system performance can affect a program and/or an application’s behavior, SAS users may want to access information about a data set’s […]

The post Determining the size of a SAS data set appeared first on SAS Learning Post.