| Author | 
		  Message
		 | 
		
		  | tonynix | 
		  
		    
			  
				 Posted: Wed Jan 18, 2017 2:30 pm    Post subject: Demonstrating basic MQ Get/Put on z/OS | 
				     | 
			   
			 
		   | 
		
		
		   Novice
 
 Joined: 18 Jan 2017 Posts: 10
  
  | 
		  
		    
			  
				| Hi everyone.  This is my first post to the MQ forum and I would appreciate your help.  I've been "chosen" to become the MQ expert for our team and I need to be able to demonstrate in a demo format how you can put a simple message like "hello world" to a queue, see the message in the queue, get it out of the queue and print the results.  I only want to demonstrate get and put to one local queue.  Do you know of an easy way to demo this function for z/OS?  Thanks.  Tony | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | gbaddeley | 
		  
		    
			  
				 Posted: Wed Jan 18, 2017 3:24 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Jedi Knight
 
 Joined: 25 Mar 2003 Posts: 2538 Location: Melbourne, Australia 
  | 
		  
		    
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | PaulClarke | 
		  
		    
			  
				 Posted: Wed Jan 18, 2017 4:53 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Grand Master
 
 Joined: 17 Nov 2005 Posts: 1002 Location: New Zealand 
  | 
		  
		    
			  
				What is this demo for ? It might affect the answer ? Are you just trying to demonstrate that you can indeed put a message to a queue and get it off again? Or are you trying to demonstrate the API, and if so which one ?
 
 
Essentially I think we need to know what the attendees of the demonstration should gain from the demo.
 
 
Cheers,
 
 
Paul. _________________ Paul Clarke
 
MQGem Software
 
www.mqgem.com | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | tonynix | 
		  
		    
			  
				 Posted: Thu Jan 19, 2017 7:00 am    Post subject: Demo | 
				     | 
			   
			 
		   | 
		
		
		   Novice
 
 Joined: 18 Jan 2017 Posts: 10
  
  | 
		  
		    
			  
				@PaulClarke:  it's a demo I would use to show beginners to MQ.  Many people I work with have little experience with MQ and it would be good to show a very basic process flow with a simple application.  I want to show how an application program would send and retrieve a message from a local MQ queue.
 
 
 
@gbaddeley:  I have looked at those samples and did successfully run the PUT and GET samples, however I don't see how I can change the COBOL code to add a message and see it sent.  It looks to me that the samples are only demonstrating the PUT and GET process without seeing the actual message | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | bruce2359 | 
		  
		    
			  
				 Posted: Thu Jan 19, 2017 7:16 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Poobah
 
 Joined: 05 Jan 2008 Posts: 9486 Location: US: west coast, almost. Otherwise, enroute. 
  | 
		  
		    
			  
				Unlike the Windows/UNIX sample programs, the z/OS samples lack the hands-on user-interface (UI) - the samples are all batch in z/OS, and they're not pretty.
 
 
Why not use the MQ Explorer utility to connect to the z/OS qmgr, and then demo using the Explorer? _________________ 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 | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | Vitor | 
		  
		    
			  
				 Posted: Thu Jan 19, 2017 7:25 am    Post subject: Re: Demo | 
				     | 
			   
			 
		   | 
		
		
		    Grand High Poobah
 
 Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA 
  | 
		  
		    
			  
				
   
	| tonynix wrote: | 
   
  
	|  however I don't see how I can change the COBOL code to add a message and see it sent. | 
   
 
 
 
From inside the COBOL, the message is just another data structure like a record or a database results set. Do with it what you will. _________________ Honesty is the best policy.
 
Insanity is the best defence. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | Vitor | 
		  
		    
			  
				 Posted: Thu Jan 19, 2017 7:27 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Grand High Poobah
 
 Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA 
  | 
		  
		    
			  
				
   
	| bruce2359 wrote: | 
   
  
	| Why not use the MQ Explorer utility to connect to the z/OS qmgr, and then demo using the Explorer? | 
   
 
 
 
Possibly the OP's sys progs have a stern view of client connections to z/OS.
 
 
The ISPF panels are an option for the OP though. _________________ Honesty is the best policy.
 
Insanity is the best defence. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | gbaddeley | 
		  
		    
			  
				 Posted: Thu Jan 19, 2017 3:02 pm    Post subject: Re: Demo | 
				     | 
			   
			 
		   | 
		
		
		    Jedi Knight
 
 Joined: 25 Mar 2003 Posts: 2538 Location: Melbourne, Australia 
  | 
		  
		    
			  
				
   
	| Vitor wrote: | 
   
  
	
   
	| tonynix wrote: | 
   
  
	|  however I don't see how I can change the COBOL code to add a message and see it sent. | 
   
 
 
From inside the COBOL, the message is just another data structure like a record or a database results set. Do with it what you will. | 
   
 
 
Add DISPLAY statements in the COBOL program and recompile ??? _________________ Glenn | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | 
		    
		   |