I have to perform a task. I have to write messages from RPGLE program to the job spool file of the same program.
I am using QMHSNDPM api to send message to the same call stack message queue. The messages are getting written in joblog but not in spool file generated for job. I am not changing any job description parameter. Every thing is default.
Though the call PGM command is there in the spool file but *info message are not getting written.
No idea why is it happening.
Please help on this issue.
I think that whatever is there in job log goes to spool file for printing. but this is not happening in my case.