Author |
Message
|
dvekeman |
Posted: Fri Aug 26, 2011 4:20 am Post subject: RFHUtil - Problem setting Appl Origin |
|
|
Newbie
Joined: 26 Aug 2011 Posts: 5
|
Hi
I'm using RFHUtil to post a message on a remote queue manager.
The issue I'm facing is that the field Appl Origin is not set when I type in 4 characters eg 'ABCD', however it's working fine when I only pass 3 characters 'ABC'. The other header fields seem to work fine (Application Identity, Appl Type, Put Application Name).
I am using MQ Explorer v7 to browse the queue and to see that the Appl Origin Data is empty. The same happens when I use RFHUtil to Read/Browse the queue: All fields are ok, except Appl Origin Data is empty when it was posted with 4 chars.
It looks as an encoding issue...? But I've tried so many trial-and-error things and I'm still unable to get it working. Basically I would be interesting to know which RFH Util parameters influence the Appl Origin Data field. If - for example - I fill the Application Identity Data field till the end I is properly shown.
Some tech details:
Client:
RFHUtil on Windows
Name: WebSphere MQ
Version: 7.0.1.6
CMVC level: p701-106-110725
BuildType: IKAP - (Production)
Server
dis QMGR CCSID
2 : dis QMGR CCSID
AMQ8408: Display Queue Manager details.
==> CCSID(1208)
RFHUtil (I've tried a lot of combinations already):
Main
* Open > select and xml file
* PUT/GET Options: 'Set all context' is enabled
* User props: tried all of them (maybe not in the correct combination with other fields though). Currently I have it set to RFH2
Data
* I opened an XML, but data format is set to 'Character' (but I already tried with XML as well)
=> I'm assuming that - so far - none of the above would influence my MQMD header, is that correct? (except the set all context)
MQMD
* MQ Message Format: tried MQSTR & MQCMD2 & MQHRF2
=> MQSTR was my initial option
=> MQRFH2 was selected when turning on RFH > Include RFH2 headers
* Code page: tried 850 and 819
* Appl Origin ABCD (trying with ABC works fine)
RFH
* Data format: MQSTR
* Code Page: 850
* CCSID: 1208
* Include RFH2 Header (tried with and without)
* Encoding: Integer (tried all three PC, Host, Unix)
Thanks
D. |
|
Back to top |
|
 |
balaji83it |
Posted: Fri Aug 26, 2011 4:56 am Post subject: |
|
|
Acolyte
Joined: 20 Jul 2007 Posts: 72
|
Where are you giving the option of "abcd" or "abc"? |
|
Back to top |
|
 |
dvekeman |
Posted: Fri Aug 26, 2011 5:08 am Post subject: |
|
|
Newbie
Joined: 26 Aug 2011 Posts: 5
|
Don't know if I fully understood your question but I'm typing these values in the field Appl Origin in the MQMD tab.
The RFHUtil allows me to type in 4 character in total for this particular field. |
|
Back to top |
|
 |
balaji83it |
Posted: Fri Aug 26, 2011 5:22 am Post subject: |
|
|
Acolyte
Joined: 20 Jul 2007 Posts: 72
|
|
Back to top |
|
 |
Vitor |
Posted: Fri Aug 26, 2011 5:32 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
balaji83it wrote: |
This can give you some info but not a solution. |
I rather think the OP was more looking for a solution. I suspect the link you (correctly) reference is where the "4 characters should work" idea came from...
dvekeman wrote: |
RFHUtil on Windows
Name: WebSphere MQ
Version: 7.0.1.6
CMVC level: p701-106-110725
BuildType: IKAP - (Production)
|
Which version of RFHUtil? I've just tried it on WMQv7.0.1.5 using RFHUtil 7.0.2 (11/2/2009) and I can set 4 characters no problem.
Also encoding doesn't control characters - it controls binary number high order sign position. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
balaji83it |
Posted: Fri Aug 26, 2011 5:38 am Post subject: |
|
|
Acolyte
Joined: 20 Jul 2007 Posts: 72
|
@Vitor,
Iam also using RFHUTIL V7.0.2 build Nov 2, 2009 and
MQ Version: 7.0.1.5
My MQ is running in Linux 5.5 and rfhutil is ran from WinXP.
but I see that strange problem whatever he has specified. |
|
Back to top |
|
 |
Vitor |
Posted: Fri Aug 26, 2011 5:42 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
balaji83it wrote: |
Iam also using RFHUTIL V7.0.2 build Nov 2, 2009 and
MQ Version: 7.0.1.5
My MQ is running in Linux 5.5 and rfhutil is ran from WinXP.
|
Wouldn't that imply you're using RFHUtilc rather than RFHUtil?  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
Vitor |
Posted: Fri Aug 26, 2011 5:44 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Which of course is clearly what the OP is using:
dvekeman wrote: |
I'm using RFHUtil to post a message on a remote queue manager |
Doh!  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
balaji83it |
Posted: Fri Aug 26, 2011 5:45 am Post subject: |
|
|
Acolyte
Joined: 20 Jul 2007 Posts: 72
|
yes it is obviously RFHUTILC as you can see his initial post where he mentioned about a remote Qmanager.
Code: |
Hi
I'm using RFHUtil to post a message on a remote queue manager.
The issue I'm facing is that the field Appl Origin is not set when I type in 4 characters eg 'ABCD', however it's working fine when I only pass 3 characters 'ABC'. |
|
|
Back to top |
|
 |
Vitor |
Posted: Fri Aug 26, 2011 5:49 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Ok, works for me with RFHUtilc from WinXP to queue managers on Win 2003 & Win 2008 with CCSID 437 & a hastly defined test queue manager with CCSID 1208.
@dvekeman
What OS is your queue manager on? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
dvekeman |
Posted: Fri Aug 26, 2011 6:11 am Post subject: |
|
|
Newbie
Joined: 26 Aug 2011 Posts: 5
|
Hi
Just to confirm: yes I'm using RFHUtilc on windows 7 (64 bit)
Code: |
# START
set RFHUTIL_HOME=<path>\rfhutil
set MQSERVER=<channel>/TCP/<ip>(<port>)
START %RFHUTIL_HOME%\rfhutilc.exe
EXIT
# END
|
Quote: |
What OS is your queue manager on?
|
uname -a
Linux <hostname> 2.6.9-55.ELsmp #1 SMP Fri Apr 20 17:03:35 EDT 2007 i686 i686 i386 GNU/Linux
cat /etc/redhat-release
Red Hat Enterprise Linux AS release 4 (Nahant Update 5)
Quote: |
but I see that strange problem whatever he has specified.
|
Seems that we are both running QM on Linux
Update: forgot to mention I'm using RFHUtil v7.0.2 build 210 |
|
Back to top |
|
 |
Vitor |
Posted: Fri Aug 26, 2011 6:25 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Interesting to see if you can set the full 4 characters using RFHUtil on the server _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
dvekeman |
Posted: Fri Aug 26, 2011 7:17 am Post subject: |
|
|
Newbie
Joined: 26 Aug 2011 Posts: 5
|
Yes it would be idd.
However rfhutil itself is windows only. I tried running the linux/redhat50/ but those all gave me a brief "Floating point exception"
(I'm on RedHat 4 while the folder indicates redhat50)
Code: |
$ ./mqput2
Floating point exception
|
I also tried to compile
Code: |
source]$ make
gcc -I/opt/mqm/inc -I. -c mqput2.c
mqput2.c:208:23: int64defs.h: No such file or directory
make: *** [mqput2.o] Error 1
|
(note I'm not the admin of the MQ Server so I can't start installing/changing a lot on this one)
In the mean time I'm looking for an alternative solution to put a message on MQ with MQMD header. Is there a default cmd-line utility installed alongside the MQ Server that can do that?[/quote] |
|
Back to top |
|
 |
Vitor |
Posted: Fri Aug 26, 2011 7:28 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
dvekeman wrote: |
However rfhutil itself is windows only. |
Really? Shows what I know.
dvekeman wrote: |
Is there a default cmd-line utility installed alongside the MQ Server that can do that? |
I'd use the amqsput sample code supplied with the product.
There are probably other ways. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
dvekeman |
Posted: Fri Aug 26, 2011 8:42 am Post subject: |
|
|
Newbie
Joined: 26 Aug 2011 Posts: 5
|
Hi Vitor
I didn't discover these MQ samples, but that was very interesting! Usually I only work with it from a (Java JMS) side.
Nevertheless I was able to put a message on the queue with all four characters filled in the ApplOrigin data field!
Code: |
O_options = MQOO_OUTPUT /* open queue for output */
| MQOO_FAIL_IF_QUIESCING /* but not if MQM stopping */
| MQOO_SET_ALL_CONTEXT /* all Identity headers */
; /* = 0x2010 = 8208 decimal */
...
memcpy(md.ApplOriginData, /* ABCD */
"ABCD", (size_t)MQ_APPL_ORIGIN_DATA_LENGTH);
|
So the differences I noticed between the two on MQ Explorer:
* Code character set identifier: 1208 (amqsput) vs 850 (RFHUtil) => Changed in the field Code Page of the MQMD tab
* Encoding: 545 (amqsput) vs 273 (RFHUtil) => Set MQMQ > Int Fmt to PC and PD Fmt to PC and RFH > Integer to PC and Pack Desc to PC
=> Tried some posting but no success.
Then, using RFHUtil I used the 'Read' function to get the good message from the queue (that was put by amqsput). This prefills all fields in RFHUtil with the values from the read msg. Then I re-posted the same message. The result was an empty value for ApplOriginData...
So... unless someone has a clue, this looks like an RFHUtil bug to me... |
|
Back to top |
|
 |
|