From the course: SAS® 9.4 Cert Prep: Part 04 Preparing Data

Unlock this course with a free trial

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

Using Numeric functions to create columns

Using Numeric functions to create columns - SAS Tutorial

From the course: SAS® 9.4 Cert Prep: Part 04 Preparing Data

Using Numeric functions to create columns

- [Narrator] Arithmetic calculations and character constants are a good start for creating new columns, but often you need more elaborate or flexible methods for generating the new data values. SAS offers hundreds of functions that can be used in countless ways to manipulate numeric, character, and date values. A function is a defined routine that returns a value. The syntax for a function is the function name followed by the arguments enclosed in parentheses. The arguments consist of the input that the function needs to perform its specific routine and return a value. If there is more than one argument, they are separated by commas. Functions can be used in assignment statements to generate a value for the column. We just scratched the surface of what you can do with functions in this class. But I encourage you to go the documentation to see a complete listing of functions along with syntax and examples.

Contents