From the course: SAS® 9.4 Cert Prep: Part 10 Manipulating Data with Functions

Unlock this course with a free trial

Join today to access over 22,600 courses taught by industry experts.

Handling column type

Handling column type

- [Narrator] SAS offers some functions that have specialized purposes. Let's consider a very common issue, dealing with column type. You know that columns in SAS are either character or numeric, and there are certain actions that depend on data being specifically character or numeric. For example, arithmetic calculations require numeric values, and character functions, such as SUBSTRING or SCAN, require character values. What happens when you try to perform an action in the DATA step on a column that isn't the proper type?

Contents