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 Discussion » Demonstrating basic MQ Get/Put on z/OS

Post new topic  Reply to topic
 Demonstrating basic MQ Get/Put on z/OS « View previous topic :: View next topic » 
Author Message
tonynix
PostPosted: Wed Jan 18, 2017 2:30 pm    Post subject: Demonstrating basic MQ Get/Put on z/OS Reply with quote

Newbie

Joined: 18 Jan 2017
Posts: 9

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
View user's profile Send private message
gbaddeley
PostPosted: Wed Jan 18, 2017 3:24 pm    Post subject: Reply with quote

Jedi

Joined: 25 Mar 2003
Posts: 2492
Location: Melbourne, Australia

MQ comes with sample batch programs, for z/OS see https://www.ibm.com/support/knowledgecenter/SSFKSJ_8.0.0/com.ibm.mq.dev.doc/q025040_.htm
An alternative is to install MQ Client + Samples on a Windows or UNIX server, and use the interactive command line sample programs, see http://www.ibm.com/support/knowledgecenter/en/SSFKSJ_8.0.0/com.ibm.mq.dev.doc/q023920_.htm . However, this will require setting up a MQ SVRCONN channel and a TCP Listener / CHIN on the z/OS qmgr, if you don't already have one that can be used.

The path to MQ Expert is narrow and winding. I suggest that you do some IBM MQ training courses, it will save a lot of time and grief. z/OS and IBMi/AS400 are the two hardest and most complex MQ platforms to work on.
_________________
Glenn
Back to top
View user's profile Send private message
PaulClarke
PostPosted: Wed Jan 18, 2017 4:53 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
tonynix
PostPosted: Thu Jan 19, 2017 7:00 am    Post subject: Demo Reply with quote

Newbie

Joined: 18 Jan 2017
Posts: 9

@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
View user's profile Send private message
bruce2359
PostPosted: Thu Jan 19, 2017 7:16 am    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9394
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
View user's profile Send private message
Vitor
PostPosted: Thu Jan 19, 2017 7:25 am    Post subject: Re: Demo Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Thu Jan 19, 2017 7:27 am    Post subject: Reply with quote

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
View user's profile Send private message
gbaddeley
PostPosted: Thu Jan 19, 2017 3:02 pm    Post subject: Re: Demo Reply with quote

Jedi

Joined: 25 Mar 2003
Posts: 2492
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
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 Discussion » Demonstrating basic MQ Get/Put on z/OS
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.