Usage Note 23138: How can I remove macro code from my original program and create a file of the code that is generated by SAS so debugging the code is easier?
You can remove macro code by using the MFILE and MPRINT system options.
The MFILE option routes the code that is generated by the macro (the MPRINT output) to a specified file. The code in this file can then be executed and debugged without the presence of the macro code.
The syntax is as follows:
FILENAME MPRINT 'pathname and name of file';
OPTIONS MPRINT MFILE;
%YOUR_MACRO
The fileref has to be MPRINT. The pathname must include the name of the external file where the code that is generated by the macro is to be stored.
After this program finishes executing, the code in the new file can then be executed and debugged without the presence of the macro code.
Operating System and Release Information
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
Type: | Usage Note |
Priority: | low |
Topic: | SAS Reference ==> Macro
|
Date Modified: | 2019-09-30 16:30:06 |
Date Created: | 2003-03-19 10:26:18 |