If the spool file was generated, you would have an empty spool file line when you do a WRKJOB OPTION(*SPLF). You should check just before the program is called and then just after it is called.
If nothing was written to the file you will still see the line.
You can also do a ovrprtf *ALL hold(*YES) just before you call the program.
Then after the progtram is run check the job.
You will either see the actual spool file ot the empty line if no data was written to the file.
REGISTER or login: