On-Demand Webinar

Ask the Expert: Loops, Masks and FizzBuzz 

Part of the SAS Ask the Expert series

About the webinar

Loops are used to efficiently perform an action multiple times. In this webinar we will examine the options available on a data step loop and compare this with loops in SAS macro language. We also look at a way to efficiently evaluate multiple factors as a single item by using a binary mask, and discuss an implementation of FizzBuzz in the data step, and possible refinements.

What you’ll learn:

  • Data step and macro loops
  • Binary masks
  • FizzBuzz

Have a SAS profile? To complete this form automatically Sign In


All personal information will be handled in accordance with the SAS Privacy Statement.

  Yes, I would like to receive occasional emails from SAS Institute Inc. and its affiliates about SAS products and services. I understand that I can withdraw my consent at any time by clicking the opt-out link in the emails.

You look like our next Explorer! Join our global customer hub.

Join SAS Analytics Explorers to learn more SAS through multiple minor challenges in an interactive and fun environment, earn points, and exchange them for rewards!

Join with your existing SAS profile or by creating one.

About the expert

Simon Arnold

Peter Hobart 

Sr Associate  Customer Success Manager, SAS

Peter is a certified SAS advanced programmer, data integration developer and SAS platform administrator. He has worked at SAS for 26 years, in customer support, education, architecture and now customer success. He has written several SAS courses and questions for the SAS certification exams, presented at SAS forums and customer events.