| Author | Message | 
		
		  | vsathyan | 
			  
				|  Posted: Sat Mar 07, 2015 5:16 am    Post subject: qload error |   |  | 
		
		  | Centurion
 
 
 Joined: 10 Mar 2014Posts: 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 |  | 
		
		  |  | 
		
		  | bruce2359 | 
			  
				|  Posted: Sat Mar 07, 2015 5:29 am    Post subject: Re: qload error |   |  | 
		
		  |  Poobah
 
 
 Joined: 05 Jan 2008Posts: 9486
 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 |  | 
		
		  |  | 
		
		  | PaulClarke | 
			  
				|  Posted: Sat Mar 07, 2015 5:44 am    Post subject: |   |  | 
		
		  |  Grand Master
 
 
 Joined: 17 Nov 2005Posts: 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 |  | 
		
		  |  | 
		
		  | vsathyan | 
			  
				|  Posted: Sat Mar 07, 2015 6:06 am    Post subject: |   |  | 
		
		  | Centurion
 
 
 Joined: 10 Mar 2014Posts: 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 |  | 
		
		  |  | 
		
		  | PaulClarke | 
			  
				|  Posted: Sat Mar 07, 2015 7:22 am    Post subject: |   |  | 
		
		  |  Grand Master
 
 
 Joined: 17 Nov 2005Posts: 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 |  | 
		
		  |  | 
		
		  | vsathyan | 
			  
				|  Posted: Sat Mar 07, 2015 7:53 am    Post subject: |   |  | 
		
		  | Centurion
 
 
 Joined: 10 Mar 2014Posts: 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 |  | 
		
		  |  | 
		
		  | bruce2359 | 
			  
				|  Posted: Sat Mar 07, 2015 8:09 am    Post subject: |   |  | 
		
		  |  Poobah
 
 
 Joined: 05 Jan 2008Posts: 9486
 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 |  | 
		
		  |  | 
		
		  | PaulClarke | 
			  
				|  Posted: Sat Mar 07, 2015 9:11 am    Post subject: |   |  | 
		
		  |  Grand Master
 
 
 Joined: 17 Nov 2005Posts: 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 |  | 
		
		  |  | 
		
		  | tczielke | 
			  
				|  Posted: Sat Mar 07, 2015 8:09 pm    Post subject: |   |  | 
		
		  | Guardian
 
 
 Joined: 08 Jul 2010Posts: 942
 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 |  | 
		
		  |  | 
		
		  | vsathyan | 
			  
				|  Posted: Wed Mar 11, 2015 11:14 pm    Post subject: |   |  | 
		
		  | Centurion
 
 
 Joined: 10 Mar 2014Posts: 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 |  | 
		
		  |  | 
		
		  | mqjeff | 
			  
				|  Posted: Thu Mar 12, 2015 4:55 am    Post subject: |   |  | 
		
		  | Grand Master
 
 
 Joined: 25 Jun 2008Posts: 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 |  | 
		
		  |  | 
		
		  |  |