Ask the Expert webinar series

Arrays in SAS – Still Relevant and Powerful?

Tuesday, 29 September • 10.00 – 11.00 a.m. BST / 11.00 – 12.00 CEST • Cost: Complimentary

About the webinar

Arrays in the SAS DATA step have been around for many years, yet they remain highly relevant and powerful. In this session, you will see how arrays can simplify code and solve common programming challenges efficiently.

We will walk through practical examples of both one-dimensional and two-dimensional arrays, demonstrating when and how to use them. We will also explore alternative approaches so that you can choose the best method for your use case. All code examples will be shared after the webinar for you to download and use in your own environment.

What you'll learn

  • Create numeric and character one-dimensional arrays and loop through their elements.
  • Use arrays to transpose data (convert rows to columns and vice versa) in the DATA step.
  • Create two-dimensional arrays and load values from datasets into them.
  • Identify when arrays are the best approach, and when alternatives such as Hash objects may be more suitable.

About our expert


Ole Steen

Principal AI Advisor, SAS

Ole has worked with SAS since 1991, both as a BI developer and a DI developer for financial customers and as an instructor at SAS Institute.

He is still fascinated by the basics of SAS programs, especially the “good old” DataStep, but he is learning new skills and loves to share them in the classroom.

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 and SAS business partners about their products and services. I understand 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!