As the first step in the decommissioning of the site has been converted to read-only mode.

Here are some tips for How to share your SAS knowledge with your professional network.

Passing Values

From sasCommunity
Jump to: navigation, search

Abstract: This article describes various methods of passing values from a list, a control data set, to a later step or into a statement.

  • Description: FAQ about how to build macro arrays or lists for calling macros
  • Purpose: reduce Q&A about macro usage and abusage

Author: Ronald_J._Fehd


Concepts and Vocabulary

  • control data set: a list
  • list: a control data set
  • macro: a set of tokens encapsulated between the statements %macro and %mend,
  • macro variable: entry in global or local symbol table, persists across step boundaries

Across Steps

Routine CxInclude


Routine CxMacro


Macro Arrays

Macro List

Into Tokens

Macro CallMacr


Macro CallText



--Ronald_J._Fehd macro.maven == the radical programmer 07:26, 20 June 2012 (EDT)