BookmarkSubscribeRSS Feed

A SAS Macro Language Preview in Three Parts

Started ‎02-23-2018 by
Modified ‎02-23-2018 by
Views 2,262

This is the abstract for a SAS Global Forum paper from 2014.  Original title is Before You Get Started: A Macro Language Preview in Three Parts by Arthur L. Carpenter

Using the macro language adds a layer of complexity to SAS programming that many programmers are reluctant to tackle. The macro language is not intuitive, and some of its syntax and logic runs counter to similar operations in the DATA step. This makes the transfer of DATA step and PROC step knowledge difficult when first learning the macro language. So why should one make the effort to learn a complex counterintuitive language?

Before you start to learn the syntax; where to put the semicolon, and how to use the ampersand and percent sign; you need to have a basic understanding of why you want to learn the language in the first place. It will also help if you know a bit about how the language thinks. This overview provides the background that will enable you to understand the way that the macro language operates. This will allow you to avoid some of the common mistakes made by novice macro language programmers.

First things first – before you get started with the learning process, you should understand these basic concepts.

This paper covers:

  • Macro language preview: part 1 - What the language is, what it does, and what it can do
  • Macro language preview: part 2 - It is all about the timing; why the macro language comes first
  • Macro language preview: part 3 - Creating macro variables and demystifying their scope

View the paper from the SAS Global Forum proceedings (PDF file)

Presentation slides are attached as a PDF.

 

pacman.png

 

 

Version history
Last update:
‎02-23-2018 12:52 PM
Updated by:
Contributors

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

Free course: Data Literacy Essentials

Data Literacy is for all, even absolute beginners. Jump on board with this free e-learning  and boost your career prospects.

Get Started

Article Tags