czwartek, 25 sierpnia 2016

iSeries - Check/Change maximum number of spooled records

Problem:
Sometimes you can get problem with jobs which have MSGW status.
In the job you can see message:

Message . . . . : Reached maximum number of spooled records for file QPRINT
in library QGPL. (C R NOMAX 1-999999)



Solution:
1. Check what is the number of spooled records.
On console type: CHGPRTF FILE(QPRINT) and next press F4 key, then F10 key.
Next Page Down key a few times where you can find position "Max spooled output records". You can change this value to bigger.


2. To change, you can use this command also:
On console type:
CHGPRTF FILE(QPRINT) MAXRCDS(1000000)
but before check that QPRINT object isn't loked:
WRKOBJLCK OBJ(QPRINT) OBJTYPE(*FILE)


Be careful - don't use *NOMAX value.


---
If you like this or not - please write any comments below, thanks:)
or if you have any questions please send me email. I'll try to explain more.