I am running a batch job on my IBM i system and the job was initially running fine when I checked its Job log, generated spools, and the call stack. After some time it stopped and went to Message Wait (MSGW
) situation, when I further checked the Joblog I noticed that a CPF4167
error appeared whose meaning was Job cannot create any more spool files
. I checked the spool files generated by the running job currently in MSGW
and the number was huge.
How to resolve this MSGW
situation with the batch job where no more spools can be created or generated?
QMAXSPLF
system value to999999
.QMAXSPLF
system value by using the commandDSPSYSVAL QMAXSPLF
.QMAXSPLF
system value by using the commandCHGSYSVAL SYSVAL(QMAXSPLF) VALUE(999999)
.