Sending Commands to Another Job — The RUNJOBCMD Command

How would you like to be able to view or change a batch job’s local data area on the fly from your workstation session? Or maybe you want to copy a batch job’s QTEMP library to a persistent library that you can then inspect. Using the command presented in this issue, you can run any Control Language command within another job, whether batch or interactive.

In this issue, Carsten Flensburg presents the command RUNJOBCMD (Run Job Command). A typical use for the RUNJOBCMD command is to diagnose problems and fix issues in active batch or interactive jobs. For example, you can add a missing library to another job’s library list prior to performing a “retry” operation on a failing command or program.

Download the save file containing the source code.

Read the entire article

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s