There are several means for a "cure", but the following is easy and
typically chosen. Issue a properly scoped override to the printer file
to enable sufficient records for the upcoming SAV OUTPUT(*PRINT)
request, and then [maybe desirable, necessary, or optional to] delete
the override following that save request which generates the spool file
output:
OVRPRTF QSYSPRT MAXRCDS(*NOMAX /* or big# */) OVRSCOPE(as_required)
SAV OUTPUT(*PRINT) /* same as currently coded */
DLTOVR QSYSPRT LVL(accordingly)
An override request could instead specify an alternate printer file
to be opened, where the redirected-to printer file has been created or
changed to enable a sufficiently large number of records to be spooled;
e.g. issue the following command once, and then the OVRPRTF [and a
DLTOVR] at run-time on either side of the request producing the output:
CHGPRTF SysPrtBig MAXRCDS(*NOMAX /* or big nbr */)
/* SysPrtBig PRTF could be duplicated from the QSYSPRT *FILE */
OVRPRTF QSYSPRT TOFILE(SysPrtBig) OVRSCOPE(as_required)
SAV OUTPUT(*PRINT) /* same as currently coded */
DLTOVR QSYSPRT LVL(accordingly)
There is also the chosen INQMSGRPY setting for the job [*DFT or
*SYSRPYL] combined with a message default reply [which could come from
an alternate *MSGF using OVRMSGF, or less desirable, from the specific
message in the specific message file that will be used] or a specified
system reply list reply value which is very simple but not very specific
except when the "Compare value" can be utilized [ADDRPYLE].
Another option, though surely the least desirable [and therefore not
well-described; even if the most flexible since it can be programmed to
respond accordingly], is to use the exit point for inquiry messages.
--
Regards, Chuck