Author |
Message
|
Tom Stewart |
Posted: Mon Aug 02, 2004 10:14 am Post subject: MQ/400 -> RPG Process Parameters |
|
|
 Newbie
Joined: 28 Jul 2004 Posts: 4 Location: Philadelphia
|
My first swat at MQ....
The MQ triggering functionality passes a large parameter to your application program that appears to be the contents of the Process used by the trigger. I'm looking to use the 'User Data' field to pass a string to ma application program. Does anyone know or know where to find the data structure of that parm?
Thx _________________ Live To Ride! |
|
Back to top |
|
 |
vennela |
Posted: Mon Aug 02, 2004 7:51 pm Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
Look at MQTM and MQTMC2 chapters 21 and 22 of Application Programming Reference. You can get this manual by clicking on the documentation link on the top of this page. |
|
Back to top |
|
 |
kman |
Posted: Mon Aug 02, 2004 8:03 pm Post subject: |
|
|
Partisan
Joined: 21 Jan 2003 Posts: 309 Location: Kuala Lumpur, Malaysia
|
The user data is 128 byte string, can be anything you want. It is something for you to decide, hence user data. |
|
Back to top |
|
 |
Tom Stewart |
Posted: Wed Sep 22, 2004 4:51 am Post subject: what I really meant.... |
|
|
 Newbie
Joined: 28 Jul 2004 Posts: 4 Location: Philadelphia
|
I was looking for the positional breakdown of the parameter passed by the process in order to use the User Data field in the called program.
I'm using this passed data to set my runtime environment (jobd, jobd lib, jobname, program name program lib etc) on a sbmjob command kicked off by the queue trigger.
For anyone else with the same thought.......
Start at byte 557 and go crazy.
CHGVAR VAR(&JOBDLIB) VALUE(%SST(&PROCDATA 557 )
CHGVAR VAR(&JOBD) VALUE(%SST(&PROCDATA 567 7))
CHGVAR VAR(&PGMLIB) VALUE(%SST(&PROCDATA 577 )
CHGVAR VAR(&JOBNAME) VALUE(%SST(&PROCDATA 587 9))
CHGVAR VAR(&CLDRIVER) VALUE(%SST(&PROCDATA 597 )
CHGVAR VAR(&RPGPROC) VALUE(%SST(&PROCDATA 607 )
Field lengths are to our in-house standards. In general you can use lengths up to 10 of course. _________________ Live To Ride! |
|
Back to top |
|
 |
Tom Stewart |
Posted: Wed Sep 22, 2004 4:53 am Post subject: |
|
|
 Newbie
Joined: 28 Jul 2004 Posts: 4 Location: Philadelphia
|
apologies for all of the smiley non-sense. I'm happy, but not laughing gas happy! |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed Sep 22, 2004 5:05 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
The "large string" that is passed to a triggered application in the command arguments by the IBM trigger monitors is an MQTMC2 structure. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
|