| Author | 
		  Message
		 | 
		
		  | Shreyu | 
		  
		    
			  
				 Posted: Mon Jan 13, 2003 10:31 am    Post subject: Q for input and output | 
				     | 
			   
			 
		   | 
		
		
		    Newbie
 
 Joined: 19 Dec 2002 Posts: 5 Location: Dallas TX. 
  | 
		  
		    
			  
				Hello,
 
     Can any body tell me what is option on OS390/MQ5.2v for opening a QUEUE in INPUT and OUTPUT mode.
 
I see MQOO-INPUT and MQOO-OUTPUT, but no variable with IN - OUT mode.
 
 
  Thanks in advance.
 
Shreyu | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | bower5932 | 
		  
		    
			  
				 Posted: Mon Jan 13, 2003 11:18 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Jedi Knight
 
 Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA 
  | 
		  
		    
			  
				| You OR the two fields together to indicate that you won't both input and output.  If you look at the cmqc.h file, you can see that the values are bits. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | Shreyu | 
		  
		    
			  
				 Posted: Mon Jan 13, 2003 11:43 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Newbie
 
 Joined: 19 Dec 2002 Posts: 5 Location: Dallas TX. 
  | 
		  
		    
			  
				Thanks for the reply.
 
Please let me know am I understood right .....?
 
Can I use the below code....
 
COMPUTE W13-OPENOPTIONS     EQUAL     MQOO-OUTPUT + MQOO-INPUT    +    MQOO-FAIL-IF-QUIESCING.  
 
                                               
 
CALL 'MQOPEN' USING W03-HCONN                  
 
                    MQOD                       
 
                    W13-OPENOPTIONS            
 
                    W13-HOBJ                   
 
                    W13-COMPCODE               
 
                    W13-REASON.    
 
 
And can I do MQGET and MQPUT  in sequence........?
 
 
Thanks in advance.
 
Shreyu. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | PeterPotkay | 
		  
		    
			  
				 Posted: Mon Jan 13, 2003 6:17 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Poobah
 
 Joined: 15 May 2001 Posts: 7723
  
  | 
		  
		    
			  
				That will work.
 
(Make sure you are opening a local queue. You will get an options error if you try to open a remote queue def for INPUT) _________________ Peter Potkay
 
Keep Calm and MQ On | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | Shreyu | 
		  
		    
			  
				 Posted: Tue Jan 14, 2003 6:45 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Newbie
 
 Joined: 19 Dec 2002 Posts: 5 Location: Dallas TX. 
  | 
		  
		    
			  
				Yes it did work.
 
 
Thank you all.
 
Shreyu. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | 
		    
		   |