Skip to Main Content
SAS Certified Professional Prep Guide
book

SAS Certified Professional Prep Guide

by SAS Institute
October 2019
Intermediate to advanced content levelIntermediate to advanced
430 pages
19h 4m
English
SAS Institute
Content preview from SAS Certified Professional Prep Guide

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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

SAS Certified Specialist Prep Guide

SAS Certified Specialist Prep Guide

SAS Institute
SAS in Practice

SAS in Practice

Ekta Saraogi

Publisher Resources

ISBN: 9781642954692