I want to know how to monitor for errors when using the CPYSPLHPT command to convert SCS or AFP spool files to PCL format from within a CL program.
Listed below are the CL commands that should be included in a CL program to monitor for errors on the CPYSPLHPT command.
CPYSPLHPT FILE(QSYSPRT) IFSFILE('/REPORT.PCL')
MONMSG MSGID(CPF9898) EXEC(SNDPGMMSG MSGID(CPF9898) MSGF(QCPFMSG) MSGDTA('Conversion failed'))
Last Modified On: March 23, 2020