ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General IBM MQ Support » MQ/400 -> RPG Process Parameters

Post new topic  Reply to topic
 MQ/400 -> RPG Process Parameters « View previous topic :: View next topic » 
Author Message
Tom Stewart
PostPosted: Mon Aug 02, 2004 10:14 am    Post subject: MQ/400 -> RPG Process Parameters Reply with quote

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
View user's profile Send private message
vennela
PostPosted: Mon Aug 02, 2004 7:51 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
kman
PostPosted: Mon Aug 02, 2004 8:03 pm    Post subject: Reply with quote

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
View user's profile Send private message Yahoo Messenger
Tom Stewart
PostPosted: Wed Sep 22, 2004 4:51 am    Post subject: what I really meant.... Reply with quote

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
View user's profile Send private message
Tom Stewart
PostPosted: Wed Sep 22, 2004 4:53 am    Post subject: Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Wed Sep 22, 2004 5:05 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » MQ/400 -> RPG Process Parameters
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.