If you are referring to printed output, create a flat file with a length equal to your spool file definition. Then when you job is done you can use CPYSPLF and copy it to the flat file ex. CPYSPLF FILE(QSYSPRT) TOFILE(QTEMP/WORK132). If you want to do it the had way, eliminate the spool from your program and replace it with the flat file. Then you need to define each printed line as a data structure, then move that to the filed name in your flat file.
Or just override the spooled file directly to the flat file.