Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Crash Course : SAS Macro Programming By Example
Rating: 4.0 out of 5(178 ratings)
2,978 students

Crash Course : SAS Macro Programming By Example

Learn the syntax of SAS macro and see workout examples. understand use case, debugging, error handling, looping etc.
Last updated 12/2023
English

What you'll learn

  • Understand the SAS macro syntax
  • SAS Macro usage
  • Technique to understand the execution of SAS Macros
  • Download SAS Macro codes for their usage and modifications
  • See some workout examples of SAS macros
  • Understand how to handle SAS macro errors

Course content

2 sections18 lectures1h 46m total length
  • Curriculum details - How does the course progress?2:13
  • Getting free access to SAS for academics3:30
  • Understand SAS for academics - environment6:31
  • How to study this course? - get best out of this course1:23
  • What is a SAS macro and what are multiple ways to define a SAS macro?9:24

    SAS code - you will learn the syntax,

    • To detect number of variables in a dataset 
    • Create loop to run for all the variables of a dataset 
    • Detect number of distinct categories for all variables 
    • Pass a parameter to macro to make a condition for number of distinct categories 
    • Run proc freq for some cases meeting above condition 
    • Run univariate for numeric variables How to put descriptive titles
  • How to make SAS macro function and define a loop inside SAS macro?5:07

    SAS code will help you learn the syntax,

    • To detect number of variables in a dataset
    • Create loop to run for all the variables of a dataset
    • Detect number of distinct categories for all variables
    • Pass a parameter to macro to make a condition for number of distinct categories
    • Run proc freq for some cases meeting above condition
    • Run univariate for numeric variables
    • How to put descriptive titles


  • Syntax for conditional execution, data type conversion & debugging in SAS macro9:34

    Continuation of lecture 3

    • To detect number of variables in a dataset
    • Create loop to run for all the variables of a dataset
    • Detect number of distinct categories for all variables
    • Pass a parameter to macro to make a condition for number of distinct categories
    • Run proc freq for some cases meeting above condition
    • Run univariate for numeric variables
    • How to put descriptive titles


Requirements

  • Basic SAS

Description

This course is all about SAS macro. SAS is synonymous of analytics. SAS macro is considered an advance topic in SAS programming. 

It helps SAS programmers to 

  1. save his time, 

  2. write error free code and 

  3. put more time into analysis rather than just writing the code.

In this course students will learn the syntax of SAS macro, see the use cases and will go through some workout examples. After doing the course students should become comfortable in writing SAS macros. 

The course will have two sections

  1. Introduction - in this section, students will be introduced to various syntax options and they will be demonstrated the same using SAS

  2. Workout - in this section students will learn to put together various SAS syntax for a purpose. They will learn the objective of the use case and see how it was achieved. All the code will be explained in step by step manner.

The course has been designed to explain basic concepts of SAS macro programming through examples. Users should  be able to learn the syntax by seeing how it is solving a practical situation. This course is concise and packs only those materials, which are most frequently used.  Students should download reference materials and practice along with the course to get full confidence.

Who this course is for:

  • SAS Analysts
  • SAS Programmers