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 Series - populate user defined value for MDPAN

Post new topic  Reply to topic
 MQ Series - populate user defined value for MDPAN « View previous topic :: View next topic » 
Author Message
jstalin
PostPosted: Sun Jul 01, 2012 7:20 pm    Post subject: MQ Series - populate user defined value for MDPAN Reply with quote

Newbie

Joined: 09 Jun 2012
Posts: 5

HI,

I have the requirement to populate user defined value in the MDPAN field (MQ Header Level) for each message posted to MQ through AS400 Application program (RPGLE). Can anyone tell me whether it's possible to achieve the above logic? If so, please guide me how to achieve this?

I modified RPGLE program code to populate value for MDPAN before calling MQ API MQGET, but still in the MQ Header i see the value as jobname/jobnumber/username.

Below is the piece code modified to test.

C Eval MDPAN = '100001'
*
C Eval MDFmt = FmStr
C MoveL MINone MDMId
C MoveL CINone MDCId
C Eval Buffer = Wrk_Sendmsg
C Eval BufLen = %Len(%Trim(Buffer))
*
C CallP MQPUT(Hconn : Hobj : MQMd : MQPmo :
C BufLen : BufPtr : Ocode : Reason)
*

Thanks & Regards
Stalin
Back to top
View user's profile Send private message
mqjeff
PostPosted: Mon Jul 02, 2012 4:26 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

First off, http://pic.dhe.ibm.com/infocenter/wmqv7/v7r5/topic/com.ibm.mq.doc/fg12380_.htm

Second off - this is a terrible place to put custom information.

Use a Message Property instead.
Back to top
View user's profile Send private message
jstalin
PostPosted: Mon Jul 02, 2012 5:43 am    Post subject: MQ Series - populate user defined value for MDPAN Reply with quote

Newbie

Joined: 09 Jun 2012
Posts: 5

Can you get me some sample code?
Back to top
View user's profile Send private message
jstalin
PostPosted: Tue Jul 10, 2012 2:56 am    Post subject: MQ Series - populate user defined value for MDPAN Reply with quote

Newbie

Joined: 09 Jun 2012
Posts: 5

Can you please tell me exactly which parameter needs to changed in the MQMD & MQPMO structure in order to pass user defined value to Put application Identity parameter of each message?


Regards
Stalin
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 Series - populate user defined value for MDPAN
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.