Not All Equals are Created Equal: Nonstandard Statement Structures in the DATA Step

From sasCommunity
Jump to: navigation, search

Abstract

The expression is a standard building block of logical comparisons and assignment statements. Most of us use them so commonly that we do not give them a second thought. But in fact they definitely do deserve that second thought. A more complete understanding of their construction and execution can greatly expand our ability to more fully take advantage of this fundamental component of the SAS® Language.

Once we understand the basic form of the expression and how it is used in various statements, we can use this understanding to create statement forms that would otherwise appear to be illegal or just plain wrong. Further and perhaps even more importantly this deeper understanding can help to prevent us from committing errors in logic.


This presentation includes discussions of non-standard statement structures such as:

binary = name = 'Fred';

Online Materials

View the pdf for this paper.

You can also see the PowerPoint Presentation.

Contact Info

Please check out my user page. You can also email me.

www.caloxy.com