Posted: Tue Aug 21, 2007 7:19 am Post subject: Instead of the jobname we get always 'RRSBATCH' or 'BATCH'
Novice
Joined: 14 Feb 2007 Posts: 10
Hi all
In the WebSphere MQApplication Programming Reference Version 6.0 is following written:
Chapter 12. MQMD – Message descriptor
PutApplName (MQCHAR28)
This is the name of application that put the message, and is part of the origin context of the message.
The format of the PutApplName depends on the value of PutApplType.
When the queue manager sets this field (that is, for all options except MQPMO_SET_ALL_CONTEXT), it sets the field to a value that is determined by the environment:
- On z/OS, the queue manager uses:
– For z/OS batch, the 8-character job name from the JES JOB card
- ....
Why do we get instead of the real jobname always 'RRSBATCH' or 'BATCH' after the MQGET in the 'PutApplName'?
The applications don't set <origin context> at MQPUT time.
Problem
You are using CSQBRRSI stub in your batch application. The PutApplName field in the MQMD contains the value RRSBATCH instead of the jobname from the JES job-card.
Solution
Working as designed.
MQMD.PutApplName comes from the connection name. For applications using one of the RRS stubs (CSQBRSTB or CSQBRSSI), the connection name is 'RRSBATCH' and this is the value used for PutApplName.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum