Creating Macro Variables during DATA Step Execution

The CALL SYMPUTX Routine

A Brief Overview

The CALL SYMPUTX routine does the following:
  • assigns a value produced in a DATA step to a macro variable
  • if a macro variable does not exist, the CALL SYMPUTX routine creates the variable
  • creates a macro variable assignment when the program is executed
  • removes both leading and trailing blanks from both arguments
Note: The CALL SYMPUT routine is an older version of CALL SYMPUTX. CALL SYMPUT has fewer features.

CALL SYMPUTX Routine Syntax

Syntax, CALL SYMPUTX routine:
CALL SYMPUTX(macro-variable-name, value <,symbol-table>);
macro-variable-name
is assigned the character value ofexpression, and any leading or trailing ...

Get SAS Certified Professional Prep Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.