The compiler provides a MACRO preprocessor for source program alteration. It is executed prior to compilation, when you specify the MACRO or PP(MACRO) compile-time option. The MACRO preprocessor scans the preprocessor input and generates preprocessor output. The preprocessor output can serve as input to the compiler.
This description of the preprocessor assumes that you know the PL/I language described throughout this publication.
The Preprocessor input is a string of characters. consisting of intermixed:
The preprocessor executes preprocessor statements and alters the input text accordingly. Preprocessor statements can cause alteration of the input text in any of the following ways:
Preprocessor output 2 is a string of characters consisting of intermixed:
You can specify compile-time options that cause the preprocessor input to be printed or the preprocessor output or both to be printed or to be written to a data set.