SAS United Kingdom
News Events Services Academic SAS Careers Contact Us
Home Products and Solutions Customer References Partners Company Customer Support www.sas.com
SAS Macro Language 1: Essentials

 

 
Education
Certification
Customer Support
Premium Support
Performance Plan A
SAS Professionals
Education
Helicopter Promotion
Live Web Training
View All Courses
Roles
On-line Booking
Book By Location
Book in Ireland
Book by Course Title
Book by Date
Popular Courses
SAS E-Learning
Custom Events
European Courses
IDM Certificate
Partner Courses
Learning Needs Assessment
Partners
Contact Us
Online Publications
SAS Book Store
 

SAS Macro Language 1: Essentials

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.

Duration:

2.0 days

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.

Course Contents

Introduction to the Macro Facility

  • purpose of the macro facility
  • program flow
  • course data and logistics

Macro Variables

  • introduction to macro variables
  • automatic macro variables
  • macro variable references
  • user-defined macro variables
  • delimiting macro variable names
  • macro functions

Macro Definitions

  • defining and calling macros
  • the autocall facility
  • macro parameters

DATA Step and SQL Interfaces

  • creating macro variables in the DATA step
  • indirect references to macro variables
  • retrieving macro variables in the DATA step
  • creating macro variables in SQL

Macro Programs

  • conditional processing
  • iterative processing
  • global and local symbol tables

Learning More

  • SAS resources
  • other recommended courses

Software Addressed

This course addresses the following software product(s): Base SAS. This course is appropriate for students who are using SAS Version 8 or SAS 9 software.

0845 402 9902

Terms & Conditions
Public Courses
Custom Training Courses

 

The Power to Know
   Contact Us      Worldwide Sites     Search     Site Map     RSS Feeds     Terms of Use    Privacy Statement   Copyright © SAS Institute Inc. All Rights Reserved