Skip to content

Special Requests

Chris Swenson edited this page Nov 14, 2020 · 3 revisions

These macro programs were developed from special requests or questions from the community.

  • ConditionCount
    • Evaluate a condition using a data step and output one message if any records meet the condition. The message contains the number of observations that meet the condition. NOTE: Use mnemonics for operators such as = (i.e., EQ) as the macro processor will interpret it as a keyword argument instead of a condition.
  • File_or_Dir
    • Determine whether an argument is a file or a directory. Outputs a macro variable that contains the type of argument (DIR, FILE, NA).