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

Debugging Macros

The MPRINT System Option

A Brief Overview

The MPRINT system option displays the text generated by macro execution. Each SAS statement begins a new line. Each line of MPRINT output is identified with the prefix MPRINT(macro-name), to identify the macro that generates the statement.
You can direct MPRINT output to an external file by also using the MFILE option and assigning the fileref MPRINT to that file.
You might want to specify the MPRINT system option under these conditions:
  • You have a SAS syntax error or execution error.
  • You want to see the generated SAS code.
The MPRINT system option is often synchronized with the SOURCE system option to show, or hide, executed SAS code.

The MPRINT Option Syntax

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