Problem:

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. 

Solution:

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'))
 

Still have questions? We can help. Submit a case to Technical Support.

Last Modified On: December 10, 2016