Using Macro Code If-Then and Do Loops in SAS | Data Tutorial | Macros

In this Green Numbers data tutorial I show you how to use macros in SAS. With macros you can make your code more reusable and flexible. Reusing code can save you a lot of time and reduce clutter. Macro programming can seem daunting at first, especially if you’re new to programming, but if you focus on and practice the basics and build out from there, I promise you’ll find this skill very rewarding. This is the third video in the SAS macro series. In this video I’m going to show you how to use if-then-do logic and loops to that will allow you to process large volumes of data with very little code. In previous videos I showed you how to create and use a macro variable, and how to use blocks of code to do repetitive tasks. https://support.sas.com/resources/pap... https://v8doc.sas.com/sashtml/macro/z... https://blogs.sas.com/content/sasdumm...

DO loops
▶︎

DO loops

3 Ways to Create Macro Variables in SAS | Data Tutorial | Macros
▶︎

3 Ways to Create Macro Variables in SAS | Data Tutorial | Macros

Creating and Using Macro Functions in SAS | Data Tutorial | Macros
▶︎

Creating and Using Macro Functions in SAS | Data Tutorial | Macros

LOOPS IN SAS - 2 | Iterative Do Loop in SAS | Do Index Loop in SAS | Do Loop in SAS
▶︎

LOOPS IN SAS - 2 | Iterative Do Loop in SAS | Do Index Loop in SAS | Do Loop in SAS

A Beginners Guide to Using Arrays and DO Loops
▶︎

A Beginners Guide to Using Arrays and DO Loops

MACROs in SAS | SAS MACROs All in One | MACRO Programming in SAS Complete Tutorial
▶︎

MACROs in SAS | SAS MACROs All in One | MACRO Programming in SAS Complete Tutorial

HOLY ROSARY TODAY THURSDAY, JUNE 11, 2026 ST. JUDE THADDEUS & LUMINOUS MYSTERIES | DAILY HOLY ROSARY
▶︎

HOLY ROSARY TODAY THURSDAY, JUNE 11, 2026 ST. JUDE THADDEUS & LUMINOUS MYSTERIES | DAILY HOLY ROSARY

SAS Tutorial | Using SAS Macro Variable Lists to Create Dynamic Data-Driven Programs
▶︎

SAS Tutorial | Using SAS Macro Variable Lists to Create Dynamic Data-Driven Programs

SAS MACROS (Part 1):  SAS for Beginners (Lesson 29)
▶︎

SAS MACROS (Part 1): SAS for Beginners (Lesson 29)

SAS Tutorial | Beyond the Basics of Macro
▶︎

SAS Tutorial | Beyond the Basics of Macro

Using Regular Expressions in SAS | Extracting a Value using Regular Expression | PRXSUBSTR | PRXPOSN
▶︎

Using Regular Expressions in SAS | Extracting a Value using Regular Expression | PRXSUBSTR | PRXPOSN

New Jellyfish Aquarium • Healing of Stress, Anxiety and Depressive States • Goodbye Insomnia #30
▶︎

New Jellyfish Aquarium • Healing of Stress, Anxiety and Depressive States • Goodbye Insomnia #30

SAS Tutorial | 3 Steps to Build a SAS Macro Program
▶︎

SAS Tutorial | 3 Steps to Build a SAS Macro Program

SAS Tutorial | How to Create Macro Variables and Use Macro Functions
▶︎

SAS Tutorial | How to Create Macro Variables and Use Macro Functions

Mastering SAS Arrays | Boost Your Data Processing Skills
▶︎

Mastering SAS Arrays | Boost Your Data Processing Skills

MACROS IN SAS - 3 | How to Create Macro Variables in SAS |Different Ways of Creating Macro Variables
▶︎

MACROS IN SAS - 3 | How to Create Macro Variables in SAS |Different Ways of Creating Macro Variables

Rural Countryside Field Path Oil Painting | 4K Vintage Wallpaper Art Screensaver | Vintage Frames
▶︎

Rural Countryside Field Path Oil Painting | 4K Vintage Wallpaper Art Screensaver | Vintage Frames

SAS Macro Series Part 5: Creating macro variables with Proc SQL and three ways to use them
▶︎

SAS Macro Series Part 5: Creating macro variables with Proc SQL and three ways to use them

God Says:"STOP HERE — LISTEN AND HEAR ME SPEAK"/God Message Now/God Message
▶︎

God Says:"STOP HERE — LISTEN AND HEAR ME SPEAK"/God Message Now/God Message

Tuscan Cottage Wildflowers Oil Painting | 4K Vintage Wallpaper Art Screensaver | Vintage Frames
▶︎

Tuscan Cottage Wildflowers Oil Painting | 4K Vintage Wallpaper Art Screensaver | Vintage Frames