1. How can I use QCMDEXEC in Cobol/400?
2. How can I send a message back to the user who submitted the batch job? Can I use SNDBRKMSG, if so, with what parameters?
If you are wanting to send a message from your Cobol program, you would need to know the user that is currently running the job. I don't remember where the user is in a Cobol Information Data Structure, but in CL, the RTVJOBA will get it for you. You can build your command string using the command keywords (prompt your command, enter the fields and press F14 and it will show you the command string.)
Related Q&A from John Brandt
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.