SAS® Macro Language 2: Advanced Techniques Training

  • Learn via: Classroom
  • Duration: 2 Days
  • Price: From $1,287+VAT
We can host this training at your preferred location. Contact us!

This course covers macro quoting functions, macro storage, and macro techniques for advanced data access, table lookup operations, advanced parameter validation, and macro windows.

Before attending this course, you should have completed the SAS Macro Language 1: Essentials course or have equivalent knowledge and experience. Specifically, you should be able to

  • write macro programs that contain iterative processing and conditional processing
  • create local and global macro variables
  • create macro variables using the SYMPUTX routine
  • use indirect macro variable references
  • use the SQL procedure SELECT statement INTO clause.

This course addresses Base SAS software.

Who should attend

  • Experienced SAS macro programmers who want to learn advanced techniques

  • create hierarchical, menu-driven macro applications
  • exploit stored, compiled, and autocall macro facilities
  • exploit macro quoting functions
  • generate data-driven macro calls
  • perform table lookup operations
  • apply SAS or user-defined formats to macro variables
  • automatically convert data set variables to macro variables
  • search for all CSV, Excel, or Microsoft Access files in a directory and all subdirectories and automatically import each file, worksheet, or table into a SAS data set
  • search for all SAS programs in a directory and all subdirectories and automatically submit every program
  • exploit SAS I/O and external file functions
  • create your own macro functions
  • create macro functions that return the number of observations in a data set or a subset of a data set
  • create a macro function that validates whether a selected variable exists in a selected data set and returns the variable's type
  • create custom windows and menus that interactively gather and validate user-supplied parameter values

Introduction

  • course logistics

Macro Storage

  • stored compiled macro facility
  • autocall macro facility

Protecting Special Characters

  • protecting constant text
  • protecting resolved values

Reading SAS Data

  • data-driven macro calls
  • SAS I/O functions

Reading External Data

  • importing CSV files
  • importing Microsoft Excel files

Table Lookup Techniques

  • macro variables
  • formats

Validating User Input

  • macro parameters
  • macro windows


Contact us for more detail about our trainings and for all other enquiries!

Upcoming Trainings

Join our public courses in our Istanbul, London and Ankara facilities. Private class trainings will be organized at the location of your preference, according to your schedule.

Classroom / Virtual Classroom
14 February 2024
Istanbul, Ankara, London
2 Days
Classroom / Virtual Classroom
14 April 2024
Istanbul, Ankara, London
2 Days
Classroom / Virtual Classroom
24 May 2024
Istanbul, Ankara, London
2 Days
Classroom / Virtual Classroom
23 October 2024
Istanbul, Ankara, London
2 Days
By using this website you agree to let us use cookies. For further information about our use of cookies, check out our Cookie Policy.