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 » qload error

Post new topic  Reply to topic
 qload error « View previous topic :: View next topic » 
Author Message
vsathyan
PostPosted: Sat Mar 07, 2015 5:16 am    Post subject: qload error Reply with quote

Centurion

Joined: 10 Mar 2014
Posts: 121

I'm facing the below issue when I try to load a file with messages back to a queue.

QLOAD Program by Paul Clarke [ V1.9 Build:Jun 26 2012 ]
Expected message attribute at line 4 of file '/home/mqm/<QUEUENAME>'

However, I was able to copy the messages from the queue to a file.
The version is different. Is that a cause?
Back to top
View user's profile Send private message
bruce2359
PostPosted: Sat Mar 07, 2015 5:29 am    Post subject: Re: qload error Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9469
Location: US: west coast, almost. Otherwise, enroute.

vsathyan wrote:
The version is different. Is that a cause?

The version is different how? Different from what?
_________________
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
PaulClarke
PostPosted: Sat Mar 07, 2015 5:44 am    Post subject: Reply with quote

Grand Master

Joined: 17 Nov 2005
Posts: 1002
Location: New Zealand

Have you edited the file manually or something? What is the content of the file....particularly line 4.

Cheers,
Paul.
_________________
Paul Clarke
MQGem Software
www.mqgem.com
Back to top
View user's profile Send private message Visit poster's website
vsathyan
PostPosted: Sat Mar 07, 2015 6:06 am    Post subject: Reply with quote

Centurion

Joined: 10 Mar 2014
Posts: 121

Hi Paul,
No edits.

I'm downloading the messages from a windows queue to a file, copying that file to a Linux share over winscp and then trying to load the messages back to a queue in Linux queue manager.

Thankyou
Back to top
View user's profile Send private message
PaulClarke
PostPosted: Sat Mar 07, 2015 7:22 am    Post subject: Reply with quote

Grand Master

Joined: 17 Nov 2005
Posts: 1002
Location: New Zealand

Well, as I said before, what is the content of the file? Would you care to paste the first 10 lines?
_________________
Paul Clarke
MQGem Software
www.mqgem.com
Back to top
View user's profile Send private message Visit poster's website
vsathyan
PostPosted: Sat Mar 07, 2015 7:53 am    Post subject: Reply with quote

Centurion

Joined: 10 Mar 2014
Posts: 121

* QLOAD Version:1.9 Created:Sat Mar 07 03:52:20 2015
* Qmgr = <QMGR_NAME>
* Queue = <QUEUE_NAME>

A VER 2
A RPT 64
A MST 8
A EXP -1
A FDB 0
A ENC 273
Back to top
View user's profile Send private message
bruce2359
PostPosted: Sat Mar 07, 2015 8:09 am    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9469
Location: US: west coast, almost. Otherwise, enroute.

Please post the first 10 lines of the file in HEX, so we can see if there are any unprintable characters.
_________________
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
PaulClarke
PostPosted: Sat Mar 07, 2015 9:11 am    Post subject: Reply with quote

Grand Master

Joined: 17 Nov 2005
Posts: 1002
Location: New Zealand

So , QLOAD is complaining about the 'blank' line between the the titles and the attributes. Is it possible that it isn't really a blank line and has some odd characters. Has the CR/LF translation been done correctly?
_________________
Paul Clarke
MQGem Software
www.mqgem.com
Back to top
View user's profile Send private message Visit poster's website
tczielke
PostPosted: Sat Mar 07, 2015 8:09 pm    Post subject: Reply with quote

Guardian

Joined: 08 Jul 2010
Posts: 941
Location: Illinois, USA

On Linux, one option to inspect the file in character and hex is to do the following octaldump (od) commands:

od -x filename
od -c filename

The first command will print out the file in hex. The second command will print out the file in characters. Each command prints out the file 16 bytes at a time, so you can easily tie the characters back to their hex values.
_________________
Working with MQ since 2010.
Back to top
View user's profile Send private message
vsathyan
PostPosted: Wed Mar 11, 2015 11:14 pm    Post subject: Reply with quote

Centurion

Joined: 10 Mar 2014
Posts: 121

I suspect this to be due to the file formats of windows and Linux.

However, we used a custom java program to download the messages from windows queue and put it in the linux queue.

Thanks for your help and advise.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Thu Mar 12, 2015 4:55 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

vsathyan wrote:
download the messages from windows queue and put it in the linux queue.


What?

Why aren't you letting MQ move the messages?

That's it's job.
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 » General IBM MQ Support » qload error
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.