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 » General IBM MQ Support » dmpmqmsg and MQHRF2 messages

Post new topic  Reply to topic
 dmpmqmsg and MQHRF2 messages « View previous topic :: View next topic » 
Author Message
LavMQ1980
PostPosted: Thu Mar 16, 2023 3:48 am    Post subject: dmpmqmsg and MQHRF2 messages Reply with quote

Apprentice

Joined: 08 Mar 2022
Posts: 30

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
View user's profile Send private message
LavMQ1980
PostPosted: Thu Mar 16, 2023 4:02 am    Post subject: Reply with quote

Apprentice

Joined: 08 Mar 2022
Posts: 30

Sorry, it MQRHF2 of course
Back to top
View user's profile Send private message
LavMQ1980
PostPosted: Thu Mar 16, 2023 6:20 am    Post subject: Reply with quote

Apprentice

Joined: 08 Mar 2022
Posts: 30

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
View user's profile Send private message
exerk
PostPosted: Thu Mar 16, 2023 6:38 am    Post subject: Reply with quote

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
View user's profile Send private message
LavMQ1980
PostPosted: Thu Mar 16, 2023 11:36 am    Post subject: Reply with quote

Apprentice

Joined: 08 Mar 2022
Posts: 30

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
View user's profile Send private message
exerk
PostPosted: Thu Mar 16, 2023 12:52 pm    Post subject: Reply with quote

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
View user's profile Send private message
LavMQ1980
PostPosted: Sun Mar 19, 2023 4:08 am    Post subject: Reply with quote

Apprentice

Joined: 08 Mar 2022
Posts: 30

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
View user's profile Send private message
exerk
PostPosted: Sun Mar 19, 2023 7:33 am    Post subject: Reply with quote

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
View user's profile Send private message
bruce2359
PostPosted: Sun Mar 19, 2023 2:16 pm    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9394
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
View user's profile Send private message
LavMQ1980
PostPosted: Tue Mar 21, 2023 12:50 am    Post subject: Reply with quote

Apprentice

Joined: 08 Mar 2022
Posts: 30

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
View user's profile Send private message
exerk
PostPosted: Tue Mar 21, 2023 5:29 am    Post subject: Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Tue Mar 21, 2023 9:27 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20696
Location: LI,NY

Don't use dos2unix, ftp the file as text to Unix. Load there with dmpmqmsg.


_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » dmpmqmsg and MQHRF2 messages
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.