Problem solve Get help with specific problems with your technologies, process and projects.

How can I use QCMDEXEC in Cobol/400?

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

This was last published in May 2001

Dig Deeper on RPG iSeries programming

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.