Using CPYSPLF will copy is printed report to a PF
Another method to use is to creat a PF with a length of 133 rather than 132. This allows the first character to be used as a control character so that you can convert the contents of the physical file back to a spool file and maintain proper page breaks and so forth.
When you copy the spooi file to the physical, do this (assuming QSYSPRT is the printer file name):
CPYSPLF FILE(QSYSPRT) TOFILE(SPOOLPF) CTLCHAR(*FCFC)
To take the contents from the PF back to a spool file do this:
CPYF FROMFILE(SPOOLPF) TOFILE(QSYSPRT) MBROPT(*ADD)
Last Wiki Answer Submitted: September 11, 2009 2:56 pm by CharlieBrowne32,915 pts.