Delete expired spooled files

Start of changeYou can use the EXPDATE or DAYS parameter on the Change Printer File (CHGPRTF), Create Printer File (CRTPRTF), Change Spooled File Attributes (CHGSPLFA), or Override with Printer File (OVRPRTF) commands to make a spooled file eligible for deletion using the DLTEXPSPLF command.End of change

Start of changeFor example, the following command creates a job schedule entry which causes the DLTEXPSPLF command to delete all expired spooled files on your system every day:End of change

Start of changeADDJOBSCDE JOB(DLTEXPSPLF) CMD(DLTEXPSPLF ASPDEV(*ALL)) FRQ(*WEEKLY) SCDDATE(*NONE) SCDDAY(*ALL) SCDTIME(010000) JOBQ(QSYS/QSYSNOMAX) TEXT('DELETE EXPIRED SPOOLED FILES SCHEDULE ENTRY')End of change