Return to the Printing Tips
Edit a Spool file before printing
Here is something I wrote in a hurry:
Pgm Dcl var(&cmd) type(*char) len(2000) + value('?ChgSplFA ??job() ??splnbr()') Call pgm(qcmdchk) parm(&cmd 2000) ChgVar var(&cmd) value('?CpySplF tofile(spool198)' + *bcat %sst(&cmd 10 1990) + *bcat 'ctlchar(*fcfc)') Call pgm(qcmdexc) parm(&cmd 2000) WrkDbF spool198 OvrPrtF file(qprint) pagesize(*n 198) ctlchar(*fcfc) CpyF fromfile(spool198) tofile(qprint) DltOvr qprint EndPgmBill
[report a broken link by clicking here]