Skip to Content

The SAS macro language adds power and flexibility to SAS. Using macros, you can write code a single time and reuse it repeatedly throughout your programs, which is particularly beneficial when making changes to the original code because the updates will propagate throughout your programs. Macros also enable you to make programs data-driven.

This course introduces the SAS programmer to the SAS macro language. The versatility of the macro language will be demonstrated through examples and programming projects. Upon completion of the course, students will be able to use the macro language in programs.

Topics include:

  • Creating and storing macro variables
  • Creating and calling macros
  • Assigning and passing macro parameters
  • Controlling program flow
  • Using key macro language statements
  • Coordinating DATA step and macro language variable values
  • Understanding important macro language functions

Practical experience:

  • Hands-on SAS programming projects, using SAS macros

Software: Students must download and install SAS OnDemand for Academics: Enterprise Guide. There is no additional cost for this product. Registration and download information will be provided by the instructor on the start date.

Course typically offered: Online in Fall and Spring

Prerequisites: Completion of SAS Programming II: Advanced DATA Step Programming or one year of SAS programming experience is required.

Next Steps: Upon completion of this course, consider taking Output Delivery System (ODS) and Data Visualization Essentials using SAS or PROC SQL using SAS to continue learning.

More Information: For more information about this course, please contact appliedscience@ucsd.edu. 

Note: 

Instructions for ordering the course reader (e-textbook) will be provided on the first day of class.

Course Number: CSE-41191
Credit: 2.00 unit(s)

+ Expand All