Author |
Message
|
ydsk |
Posted: Wed Feb 28, 2007 1:19 pm Post subject: IMS header values for C++ client |
|
|
Chevalier
Joined: 23 May 2005 Posts: 410
|
Hi,
I am trying to send a request msg from a Windows C++ client to an IMS transaction via a AIX qmgr and IMS bridge as shown below" :
C++ client on Windows ---> MQ5.3 on AIX ---> MQ5.3 on mainframe --> IMS bridge --> IMS.
And the Response comes back thru the same path.
I am using the IBM provided sample imsbridge.cpp but I need to change the values in the IMS header to suit my transaction. I am also trying to use RFHutilc.
msg.setFormat ("MQIMSVS ");
imqIMSBridgeHeader imshdr;
imshdr.setAuthenticator (" ");
imshdr.setEncoding (MQENC_NATIVE);
imshdr.setCharacterSet (MQCCSI_Q_MGR);
imshdr.setHeaderFlags (MQIIH_NONE);
imshdr.setFormat (MQFMT_IMS_VAR_STRING);
imshdr.setReplyToFormat (MQFMT_IMS_VAR_STRING);
imshdr.setLogicalTerminalOverride ("MASTER ");
imshdr.setMessageFormatServicesMapName ("MODU03 ");
imshdr.setSecurityScope (MQISS_CHECK);
imshdr.setCommitMode (MQICM_COMMIT_THEN_SEND);
imshdr.setTransactionState (MQITS_NOT_IN_CONVERSATION);
imshdr.setTransactionInstanceId();
I know some of them take default values but I want to know to which of them I need to feed values. Of course I have the message data ready.
Our IMS team doesn't understand the above parameters because they are specific to MQ.
Can someone pls suggest what common values the above parameters can take ( other than those that are dependent on individual transactions ) ?
Thanks.
ydsk. |
|
Back to top |
|
 |
ydsk |
Posted: Wed Feb 28, 2007 1:24 pm Post subject: |
|
|
Chevalier
Joined: 23 May 2005 Posts: 410
|
I know MQ and I know C++.
I am new to IMS bridge so I am asking you this question.
Pls post your responses.
thnx.
ydsk |
|
Back to top |
|
 |
tleichen |
Posted: Thu Mar 01, 2007 12:58 pm Post subject: |
|
|
Yatiri
Joined: 11 Apr 2005 Posts: 663 Location: Center of the USA
|
Your question does not make it clear what the difficulty is. You have already echoed the sample code here. Given that, it should be intuitive what to change. Which fields are you wanting to change? I would assume LTERM and/or MFS map name...  _________________ IBM Certified MQSeries Specialist
IBM Certified MQSeries Developer |
|
Back to top |
|
 |
ydsk |
Posted: Thu Mar 01, 2007 3:38 pm Post subject: |
|
|
Chevalier
Joined: 23 May 2005 Posts: 410
|
Hi,
My question is: do I need to change any of the fields in IIH ? Can I use defaults always ? or most of the time ?
I am new to IMS so I don't know which of them I need to change, if any.
Pls suggest.
thanks.
ydsk. |
|
Back to top |
|
 |
ydsk |
Posted: Mon Mar 26, 2007 12:41 pm Post subject: |
|
|
Chevalier
Joined: 23 May 2005 Posts: 410
|
Posted the question in "Mainframes and CICS" forum in a separate thread as the question is different from the one in this post.
Thank you.
ydsk. |
|
Back to top |
|
 |
|