This Natural profile parameter can be used to separate program output from Natural system output, which may be useful particularly in batch mode.
||Valid printer number.|
|Specification within session||no|
|Application programming interface||
||See SYSEXT - Natural Application Programming Interfaces in the Utilities documentation.|
INPUTstatements which contain non-protected input fields (field attribute specification
=A) or modifiable input fields (
MAINPRparameter is specified, program output for Report 0, which would normally be output on the printer assigned to Report 0, is output on the printer specified with
MAINPRinstead; while system output (
DATAprompt, etc.) is always output on the primary output device (Report 0); the
MAINPRsetting must be a valid printer number (0 - 31).
NTPRINTor automatically by JCL (in batch mode or under TSO).
MAINPRparameter does not apply to output from system programs in the Natural system library
SYSLIB, which is always output on the primary output device (Report 0). However, you can use the
USEMAINPRoption of the
LISTsystem command to route the output to the printer specified with
USEMAINPRis described in Settings in the System Commands documentation.