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

Introduction

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_CxInclude

Routine CxMacro

Routine_CxMacro

Macro Arrays

Macro List

Into Tokens

Macro CallMacr

Macro_CallMacr

Macro CallText

Macro_CallText

References


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