Rational Developer for System z
Enterprise PL/I for z/OS, Version 4.1, Language Reference

%PUSH directive

The %PUSH directive allows you to save the current status of the %PRINT and %NOPRINT directives in a "push down" stack on a last-in, first-out basis. You can restore this saved status later, also on a last-in, first-out basis, by using the %POP directive.

A common use of %PUSH and %POP directives is in included files and macros.

Read syntax diagramSkip visual syntax diagram>>-%PUSH--;----------------------------------------------------><
 

In the following example, statements 1, 2, 3, S3, S4, and 4 are printed in the listings. All others are not printed.

The original setting is restored following the %POP directive in Second.


Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)