| Author | 
		  Message
		 | 
		
		  | Augusto | 
		  
		    
			  
				 Posted: Mon Jan 26, 2009 2:20 pm    Post subject: amqsbcg | 
				     | 
			   
			 
		   | 
		
		
		   Apprentice
 
 Joined: 08 Dec 2008 Posts: 29
  
  | 
		  
		    
			  
				| my queue depth 50 and i want to browse last message. i know amqsbcg is used to browse. when i used this it displays one by one all messages.but i want only last message per one time. is there any different command? we are not using rfhutil. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | Vitor | 
		  
		    
			  
				 Posted: Mon Jan 26, 2009 2:52 pm    Post subject: Re: amqsbcg | 
				     | 
			   
			 
		   | 
		
		
		    Grand High Poobah
 
 Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA 
  | 
		  
		    
			  
				
   
	| Augusto wrote: | 
   
  
	| is there any different command?  | 
   
 
 
 
amqsbcg isn't a command, it's a piece of sample code. Modify it to do what you want.    _________________ Honesty is the best policy.
 
Insanity is the best defence. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | Sam Uppu | 
		  
		    
			  
				 Posted: Wed Jan 28, 2009 7:18 am    Post subject: Re: amqsbcg | 
				     | 
			   
			 
		   | 
		
		
		    Yatiri
 
 Joined: 11 Nov 2008 Posts: 610
  
  | 
		  
		    
			  
				
   
	| Augusto wrote: | 
   
  
	| my queue depth 50 and i want to browse last message. i know amqsbcg is used to browse. when i used this it displays one by one all messages.but i want only last message per one time. is there any different command? we are not using rfhutil. | 
   
 
 
 
you can write the output of amqsbcg to a file and get the msg whichever you like:
 
 
 e.g., amqsbcg QName QMgrName > /tmp/out
 
 
amqsbcg is not going to handle big msgs. it can be used for the msgs upto 1000 bytes I guess. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | Vitor | 
		  
		    
			  
				 Posted: Wed Jan 28, 2009 7:25 am    Post subject: Re: amqsbcg | 
				     | 
			   
			 
		   | 
		
		
		    Grand High Poobah
 
 Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA 
  | 
		  
		    
			  
				
   
	| Sam Uppu wrote: | 
   
  
	| amqsbcg is not going to handle big msgs. it can be used for the msgs upto 1000 bytes I guess. | 
   
 
 
 
It can if you fix it - it's only a sample as supplied!    _________________ Honesty is the best policy.
 
Insanity is the best defence. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | vandi | 
		  
		    
			  
				 Posted: Wed Jan 28, 2009 8:32 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Acolyte
 
 Joined: 13 Dec 2008 Posts: 67
  
  | 
		  
		    
			  
				Hi,
 
 
You have IBM support pack MO71, thru which you can the message you want. It like RFHUTIL. 
 
 
 
Thanks
 
Vandi | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | RogerLacroix | 
		  
		    
			  
				 Posted: Thu Jan 29, 2009 9:26 am    Post subject: Re: amqsbcg | 
				     | 
			   
			 
		   | 
		
		
		    Jedi Knight
 
 Joined: 15 May 2001 Posts: 3265 Location: London, ON  Canada 
  | 
		  
		    
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | 
		    
		   |