Q

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

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.

0 comments

Oldest 

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:

SearchEnterpriseLinux

SearchDataCenter

Close