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

Data-Driven Macro Calls

You can create data-driven macro calls using the DOSUBL DATA step function.

A Brief Overview

The DOSUBL function enables the immediate execution of SAS code after a text string is passed. Macro variables that are created or updated during the execution of the submitted code are exported back to the calling environment.
DOSUBL returns a value of 0 if SAS code was able to execute, and returns a nonzero value if SAS code was not able to execute.
DOSUBL should be used in a DATA step. It can also be used with %SYSFUNC outside a step boundary.

The DOSUBL Function

The DOSUBL function imports macro variables from the calling environment, and exports macro variables back to the calling environment.
Syntax, DOSUBL ...
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