We have a program that lets a user enter spool file name, number, user etc and then converts to PDF and emails it.
But there's no validity check in the RPG and DSPF. Is there a way in RPG to check if the specific spool file exists ?
I'd like to display a message if the file doesn't exist. Currently the program bombs.
My thought so far is to try and CPYSPLF in the later CL, and MONMSG for an error and return a flag to the RPG, but that seems clunky.
TIA
But there's no validity check in the RPG and DSPF. Is there a way in RPG to check if the specific spool file exists ?
I'd like to display a message if the file doesn't exist. Currently the program bombs.
My thought so far is to try and CPYSPLF in the later CL, and MONMSG for an error and return a flag to the RPG, but that seems clunky.
TIA
Comment