| Author | Message | 
		
		  | jeannie | 
			  
				|  Posted: Mon Jan 23, 2006 6:19 pm    Post subject: q.exe / need CCSID for client to mainframe |   |  | 
		
		  | Novice
 
 
 Joined: 10 Jan 2006Posts: 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 |  | 
		
		  |  | 
		
		  | zpat | 
			  
				|  Posted: Tue Jan 24, 2006 1:29 am    Post subject: |   |  | 
		
		  |  Jedi Council
 
 
 Joined: 19 May 2001Posts: 5867
 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 |  | 
		
		  |  | 
		
		  | jeannie | 
			  
				|  Posted: Tue Jan 24, 2006 5:41 am    Post subject: |   |  | 
		
		  | Novice
 
 
 Joined: 10 Jan 2006Posts: 18
 
 
 | 
			  
				| thank you!  I'm off to give this one a try. -jeannie
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | jeannie | 
			  
				|  Posted: Tue Jan 24, 2006 3:48 pm    Post subject: |   |  | 
		
		  | Novice
 
 
 Joined: 10 Jan 2006Posts: 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 |  | 
		
		  |  | 
		
		  | wschutz | 
			  
				|  Posted: Tue Jan 24, 2006 4:21 pm    Post subject: |   |  | 
		
		  |  Jedi Knight
 
 
 Joined: 02 Jun 2005Posts: 3316
 Location: IBM (retired)
 
 | 
			  
				| 
  Every message has a MQMD header ... can you be more specific about what you need? 
	| Quote: |  
	| But q.exe sends the MQMD header and mqcapturec does not. I need a blend of the two:) |  _________________
 -wayne
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | jeannie | 
			  
				|  Posted: Tue Jan 24, 2006 6:18 pm    Post subject: |   |  | 
		
		  | Novice
 
 
 Joined: 10 Jan 2006Posts: 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 |  | 
		
		  |  | 
		
		  | jeannie | 
			  
				|  Posted: Tue Jan 24, 2006 6:23 pm    Post subject: update on suppressing mqmd |   |  | 
		
		  | Novice
 
 
 Joined: 10 Jan 2006Posts: 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 |  | 
		
		  |  | 
		
		  | wschutz | 
			  
				|  Posted: Tue Jan 24, 2006 6:34 pm    Post subject: |   |  | 
		
		  |  Jedi Knight
 
 
 Joined: 02 Jun 2005Posts: 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 |  | 
		
		  |  | 
		
		  | jeannie | 
			  
				|  Posted: Tue Jan 24, 2006 7:12 pm    Post subject: |   |  | 
		
		  | Novice
 
 
 Joined: 10 Jan 2006Posts: 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 |  | 
		
		  |  | 
		
		  | zpat | 
			  
				|  Posted: Wed Jan 25, 2006 12:20 am    Post subject: |   |  | 
		
		  |  Jedi Council
 
 
 Joined: 19 May 2001Posts: 5867
 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 |  | 
		
		  |  | 
		
		  | jeannie | 
			  
				|  Posted: Wed Jan 25, 2006 6:13 am    Post subject: |   |  | 
		
		  | Novice
 
 
 Joined: 10 Jan 2006Posts: 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 |  | 
		
		  |  | 
		
		  |  |