| Author | 
		  Message
		 | 
		
		  | LavMQ1980 | 
		  
		    
			  
				 Posted: Thu Mar 16, 2023 3:48 am    Post subject: dmpmqmsg and MQHRF2 messages | 
				     | 
			   
			 
		   | 
		
		
		   Apprentice
 
 Joined: 08 Mar 2022 Posts: 35
  
  | 
		  
		    
			  
				Hello,
 
 
I need to move MQHRF2 messages from one QMGR to another, but when I try to load messages from the file, I get 
 
 
MQPUT(Q1) failed RC(2334) RFH Error
 
 
Is there any way to perform this task?
 
 
Thank you. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | LavMQ1980 | 
		  
		    
			  
				 Posted: Thu Mar 16, 2023 4:02 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Apprentice
 
 Joined: 08 Mar 2022 Posts: 35
  
  | 
		  
		    
			  
				Sorry, it MQRHF2 of course   | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | LavMQ1980 | 
		  
		    
			  
				 Posted: Thu Mar 16, 2023 6:20 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Apprentice
 
 Joined: 08 Mar 2022 Posts: 35
  
  | 
		  
		    
			  
				| One more detail, source is windows, target is linux and I'm using dos2unix to  fix new lines in the file. for MQSTR format i works fine. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | exerk | 
		  
		    
			  
				 Posted: Thu Mar 16, 2023 6:38 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Jedi Council
 
 Joined: 02 Nov 2006 Posts: 6339
  
  | 
		  
		    
			  
				Does it fail if you don't run it through dos2unix first?
 
 
Edit: The -P option of dmpmqmsg may be of interest to you. _________________ It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | LavMQ1980 | 
		  
		    
			  
				 Posted: Thu Mar 16, 2023 11:36 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Apprentice
 
 Joined: 08 Mar 2022 Posts: 35
  
  | 
		  
		    
			  
				Yes, I run dos2unix first, because otherwise it just fails on the structure of the file.
 
 
-P as I see for CCSID conversion ... It's 1208 on both qmgrs. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | exerk | 
		  
		    
			  
				 Posted: Thu Mar 16, 2023 12:52 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Jedi Council
 
 Joined: 02 Nov 2006 Posts: 6339
  
  | 
		  
		    
			  
				
   
	| LavMQ1980 wrote: | 
   
  
	Yes, I run dos2unix first, because otherwise it just fails on the structure of the file.
 
 
-P as I see for CCSID conversion ... It's 1208 on both qmgrs. | 
   
 
 
You have Windows set to 1208 (UTF-8 equivalent), rather than its native code page?
 
 
Have you dumped out the messages in ASCII format, using the -dA switch of dmpmqmsg, to see whether the message content is correct?
 
 
Last gasp suggestion is to use dmpmqmsg in client mode (-c) from the Linux box and pull the messages directly from the Windows box.
 
 
Also, you state that "...it just fails on the structure of the file." - can you post the actual failure message from dmpmqmsg? _________________ It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | LavMQ1980 | 
		  
		    
			  
				 Posted: Sun Mar 19, 2023 4:08 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Apprentice
 
 Joined: 08 Mar 2022 Posts: 35
  
  | 
		  
		    
			  
				You have Windows set to 1208 (UTF-8 equivalent), rather than its native code page? - Yes
 
 
Dumped it with -dt, I didn't see anything special
 
 
I will look into -c, thanks.
 
 
It fails on the structure of the file, if I don't run "dos2unix", makes sense. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | exerk | 
		  
		    
			  
				 Posted: Sun Mar 19, 2023 7:33 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Jedi Council
 
 Joined: 02 Nov 2006 Posts: 6339
  
  | 
		  
		    
			  
				
   
	| LavMQ1980 wrote: | 
   
  
	| You have Windows set to 1208 (UTF-8 equivalent), rather than its native code page? - Yes | 
   
 
 
What was the reasoning behind this please?
 
 
   
	| LavMQ1980 wrote: | 
   
  
	| Dumped it with -dt, I didn't see anything special | 
   
 
 
The Knowledge Centre states for the -dt switch: This format is not code page safe. Loading a file written in this format, while running in a new code page does not guarantee to produce the same message., hence why I suggested using the -dA switch to check.
 
 
   
	| LavMQ1980 wrote: | 
   
  
	| It fails on the structure of the file, if I don't run "dos2unix", makes sense. | 
   
 
 
Perhaps it's failing because you are dumping it non-thread-safe?
 
 
Would you please post the exact command you are using, and the exact error message you are seeing in regard to the file structure, thank you. _________________ It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | bruce2359 | 
		  
		    
			  
				 Posted: Sun Mar 19, 2023 2:16 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Poobah
 
 Joined: 05 Jan 2008 Posts: 9486 Location: US: west coast, almost. Otherwise, enroute. 
  | 
		  
		    
			  
				
   
	| exerk wrote: | 
   
  
	| Would you please post the exact command you are using, and the exact error message you are seeing in regard to the file structure, thank you. | 
   
 
 
"exact" means complete error message with message-id (AMQnnnn), message text, environment variables you set, command(s) you issued. _________________ I like deadlines. I like to wave as they pass by.
 
ב''ה
 
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | LavMQ1980 | 
		  
		    
			  
				 Posted: Tue Mar 21, 2023 12:50 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Apprentice
 
 Joined: 08 Mar 2022 Posts: 35
  
  | 
		  
		    
			  
				The 1208 code page is what customer has for years in the older environment ... It's just a given fact    
 
 
Command on MQ8 Windows used to extract:
 
 
dmpmqmsg -iQL.APP1 -mQM.APP -fdump.msg
 
 
Command used on MQ9 Linux to load:
 
 
MQ_DATA_PATH="/var/mqm"
 
MQ_ENV_MODE="64"
 
MQ_INSTALLATION_NAME="Installation1"
 
MQ_INSTALLATION_PATH="/opt/mqm"
 
MQ_JAVA_DATA_PATH="/var/mqm"
 
MQ_JAVA_INSTALL_PATH="/opt/mqm/java"
 
MQ_JAVA_LIB_PATH="/opt/mqm/java/lib64"
 
MQ_JRE_PATH="/opt/mqm/java/jre64/jre"
 
 
dos2unix dump.msg
 
dmpmqmsg -oAPP.Q4 -mJMSQM -fdump.msg
 
 
5724-H72 (C) Copyright IBM Corp. 1994, 2022.
 
IBM MQ Queue Load/Unload Utility
 
MQPUT(APP.Q4) failed RC(2334) RFH Error
 
Read    - Files:   1  Messages:1  Bytes:909
 
Written - Files:   0  Messages:0  Bytes:0
 
 
 
File dump.msg has 3 message.
 
 
 
I also tried to extract the messages to file directly from Linux server, using -c, so I won't have to run "dos2unix". But it throws the same error about RFH, when loading.
 
 
Queues that don't have messages in MQRFH2 format, are extracted and loaded correctly. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | exerk | 
		  
		    
			  
				 Posted: Tue Mar 21, 2023 5:29 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Jedi Council
 
 Joined: 02 Nov 2006 Posts: 6339
  
  | 
		  
		    
			  
				What does the content of the file look like before running dos2unix, and what does the content of the file look like after running dos2unix? _________________ It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | fjb_saper | 
		  
		    
			  
				 Posted: Tue Mar 21, 2023 9:27 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Grand High Poobah
 
 Joined: 18 Nov 2003 Posts: 20768 Location: LI,NY 
  | 
		  
		    
			  
				Don't use dos2unix, ftp the file as text to Unix. Load there with dmpmqmsg.
 
 
  _________________ MQ & Broker admin | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | 
		    
		   |