Ask the Expert

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 first published in May 2001

There are Comments. Add yours.

TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
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
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: