Controlling printing by spooled file size

You can use the MAXPAGES parameter on the Create Output Queue (CRTOUTQ) or Change Output Queue (CHGOUTQ) command to control the printing of spooled files by size.

For example, assume that you want to restrict spooled files with more than 40 pages from printing between 8 a.m. and 4 p.m. on output queue MYOUTQ. Between noon and 1 p.m. you want to allow spooled files with 10 pages or less to print. The following command implements these restrictions:

CHGOUTQ OUTQ(MYOUTQ) MAXPAGES((40 0800 1600) (10 1200 1300))