When spooled files are created, the spooled file name is typically the same as the name of the printer file that was used to create it. For example, if the Print key is pressed the spooled file would be called QSYSPRT because QSYSPRT is the printer file used by the Print key operation.
There are several ways in which the spooled file could have a different name:
OVRPRTF QSYSPRT SPLFNAME(REPORT1)causes the name of the spooled file to be REPORT1 instead of QSYSPRT.
OVRPRTF QSYSPRT TOFILE(PRTF2)causes the spooled file to be called PRTF2 (the name of the printer file specified in the TOFILE parameter of the OVRPRTF command).