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 » IBM MQ API Support » q.exe / need CCSID for client to mainframe

Post new topic  Reply to topic
 q.exe / need CCSID for client to mainframe « View previous topic :: View next topic » 
Author Message
jeannie
PostPosted: Mon Jan 23, 2006 6:19 pm    Post subject: q.exe / need CCSID for client to mainframe Reply with quote

Novice

Joined: 10 Jan 2006
Posts: 18

trying to use the IBM supportPac q.exe. All works for a put, but when trying a get an XML file/message, all I retrieve looks like hex.

I've tried many different CCSids (-C). The cobol program on the other end declares:

MQGMO-CONVERT PIC S9(9) BINARY VALUE 16384

Does anyone know what I should pass in -C? or in any parameter to get the conversion? Using MQseries 5.3, wn2000, client table is set up.

I am totally new to all this and have read reams of docs to no avail.

TIA for any help,
Jeannie
Back to top
View user's profile Send private message
zpat
PostPosted: Tue Jan 24, 2006 1:29 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

Try using support pac IH03 and the RFHUTILC program, it's all a lot more obvious what is going on.

You may also need to add certain codepages to your Windows set up - this is explained in the manual for IH03.

IH03 does not need the message broker, despite it's name, it is a pure MQ testing tool.
Back to top
View user's profile Send private message
jeannie
PostPosted: Tue Jan 24, 2006 5:41 am    Post subject: Reply with quote

Novice

Joined: 10 Jan 2006
Posts: 18

thank you! I'm off to give this one a try.
-jeannie
Back to top
View user's profile Send private message
jeannie
PostPosted: Tue Jan 24, 2006 3:48 pm    Post subject: Reply with quote

Novice

Joined: 10 Jan 2006
Posts: 18

zpat,
Do you know of any way to send the codepage to the mqcapturec program? The output is not converting to ascii.

BTW, that was the problem with q. Once I passed -c437, the file converted beautifully.

But q.exe sends the MQMD header and mqcapturec does not. I need a blend of the two:)

Thanks again for the lead.
-jeannie
Back to top
View user's profile Send private message
wschutz
PostPosted: Tue Jan 24, 2006 4:21 pm    Post subject: Reply with quote

Jedi Knight

Joined: 02 Jun 2005
Posts: 3316
Location: IBM (retired)

Quote:
But q.exe sends the MQMD header and mqcapturec does not. I need a blend of the two:)
Every message has a MQMD header ... can you be more specific about what you need?
_________________
-wayne
Back to top
View user's profile Send private message Send e-mail AIM Address
jeannie
PostPosted: Tue Jan 24, 2006 6:18 pm    Post subject: Reply with quote

Novice

Joined: 10 Jan 2006
Posts: 18

I would like to suppress the MQMD when a message is saved to a file.

When using rfhutilc.exe, a message displays as ascii, but when the same message is saved to a file, I am getting what I assume is the character set of the mainframe. The conversion is lost.

So in a perfect world, with either q.exe or mqcapturec.exe I would like to GET a message with the MQMD suppressed so that I do not have to strip it and with the character set converted properly

I have played with settings and parameters with each and have not had total luck.

-jeannie
Back to top
View user's profile Send private message
jeannie
PostPosted: Tue Jan 24, 2006 6:23 pm    Post subject: update on suppressing mqmd Reply with quote

Novice

Joined: 10 Jan 2006
Posts: 18

UPDATE; I just found the toggle off the main menu which suppresses the MQMD using rfhutilc.exe. But that was interactively. Not sure how you do with is the parameter file. Also, the message is still saving to the file as "garbage".
-jeannie
Back to top
View user's profile Send private message
wschutz
PostPosted: Tue Jan 24, 2006 6:34 pm    Post subject: Reply with quote

Jedi Knight

Joined: 02 Jun 2005
Posts: 3316
Location: IBM (retired)

Are you saying that you are doing something like:
Code:
q -iTEST -c437 -F /tmp/a

and the /tmp/a file has the MQMD in it?

It doesn't on my system unless i do:
Code:

q -iTEST -c437 -d3d -F /tmp/a

_________________
-wayne
Back to top
View user's profile Send private message Send e-mail AIM Address
jeannie
PostPosted: Tue Jan 24, 2006 7:12 pm    Post subject: Reply with quote

Novice

Joined: 10 Jan 2006
Posts: 18

Yes, i get the MQMD with

q -iQUEUE -mSERVER -L1 -c437 -F"f:\lib25\test1.xml"

Ah so ... MDE  H " µ MQSTR ÃâØ@äãØÔñ˜vðV¾Báæ‰$K†  ÿÿÿÿ

The rest of the message is fine.
Back to top
View user's profile Send private message
zpat
PostPosted: Wed Jan 25, 2006 12:20 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

If you use IH03 as I suggested, then you can see/set all the MQMD fields.

If you don't want to take my advice, then fine...
Back to top
View user's profile Send private message
jeannie
PostPosted: Wed Jan 25, 2006 6:13 am    Post subject: Reply with quote

Novice

Joined: 10 Jan 2006
Posts: 18

I did. I can see all the settings, I can suppress the MQMD. BUT, big but, when the message is written to a file, the conversion to 437 does not take place. It does if the message is printed and it does when read on the screen under the DATA tab, but it does not when written to a file.

For Q, the author Paul Clarke, gave me the magic bullet: -#m2 was needed to suppress version 2 of MQMD. I am eternally grateful for all his help.

And I certainly appreciate everyone's help here. This forum has been a godsend.
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 » IBM MQ API Support » q.exe / need CCSID for client to mainframe
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.