Learn R Programming

sasMap (version 1.0.0)

extractMacroCalls: Extract macro calls from a string of SAS code

Description

Extract macro calls from a string of SAS code

Usage

extractMacroCalls(sasCode, ignoreList = c("macro", "mend", "global", "let",
  "put", "if", "do", "end", "else"))

Arguments

sasCode

SAS code

ignoreList

Macro calls to ignore

Value

Vector of macro calls

Examples

Run this code
# NOT RUN {
sasFile <- system.file('examples/SAScode/Macros/Util1.SAS', package='sasMap')
sasCode <- loadSAS(sasFile)
extractMacroCalls(sasCode)
# }

Run the code above in your browser using DataLab