Why the CA OPS/MVS variable MSG.JOBNAME does not return the original jobname of the message issuer?

Document ID : KB000026466
Last Modified Date : 14/02/2018
Show Technical Document Details

Question 

Why the CA OPS/MVS variable MSG.JOBNAME does not return the original jobname of the message issuer?

Answer: 

When the message is issued asynchronously from the CONSOLE address space or is being reissued for some other reason, the value of MSG.JOBNAME can be different from the name of the task that originally issued it. Try using MSG.OJOBNAME instead. This variable contains the original job name associated with the message.

Additional Information:

A reference for the variables available in message rules can be found in the link below:

CA OPS/MVS release 12.3 - AOF Variables Available in MSG Rules