SAS Macro Language 1: Essentials

Duration: 16 hours

This course focuses on the components of the SAS macro facility and how to design, write, and debug.

macro systems. Emphasis is placed on understanding how programs with macro code are processed.

Learn how to:

  • Perform text substitution in SAS code
  • Automate and customize the production of SAS code
  • Conditionally or iteratively construct SAS code
  • Use macro variables and macro functions.

Who should attend:
Experienced SAS programmers who have a sound understanding of DATA step

processing and who want to write SAS programs that are reusable and dynamic

Prerequisites:

Before attending this course, you should have completed the SAS Programming 2: Data Manipulation

Techniques course or have equivalent knowledge. Specifically, you should be able to:

  • Use a DATA step to read from or write to a SAS data set or external file
  • Use DATA step programming statements such as IF-THEN/ELSE, DO WHILE, DO UNTIL, and

iterative DO

  • Use SAS data set options such as DROP=, KEEP=, and OBS=
  • Use character functions such as SUBSTR, SCAN, INDEX, and UPCASE
  • Form subsets of data using the WHERE clause
  • Create and use SAS date values and constants
  • Use SAS procedures such as SORT, PRINT, CONTENTS, MEANS, FREQ, TABULATE, and

CHART.

This course addresses Base SAS software.

This course is appropriate for students who are using SAS 9 software.