Author |
Message
|
Sam Uppu |
Posted: Tue Mar 31, 2009 10:24 am Post subject: Sample Utilities on z/OS MQ |
|
|
 Yatiri
Joined: 11 Nov 2008 Posts: 610
|
Hi Guys,
I am looking for sample utilities provided by IBM on z/os MQ like we have amqsput/ amqsget etc in distributed environments.
Thanks. |
|
Back to top |
|
 |
kevinf2349 |
Posted: Tue Mar 31, 2009 10:33 am Post subject: |
|
|
 Grand Master
Joined: 28 Feb 2003 Posts: 1311 Location: USA
|
Look in hlq.SCSQASMS (for assembler samples) hlq.SCSQCOBS (for COBOL samples).
And there are some Support packs
MA10 - Browse a queue and a dead letter browser.
MO03 - Q program
immediately spring to mind too.  |
|
Back to top |
|
 |
mqjeff |
Posted: Tue Mar 31, 2009 10:36 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
|
Back to top |
|
 |
Sam Uppu |
Posted: Tue Mar 31, 2009 10:45 am Post subject: |
|
|
 Yatiri
Joined: 11 Nov 2008 Posts: 610
|
Not sure whether CSQUTIL can be used as a sample program to PUT/GET a msg onto a queue.
Need to check the CSQUTIL program's features. |
|
Back to top |
|
 |
Vitor |
Posted: Tue Mar 31, 2009 11:07 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Sam Uppu wrote: |
Not sure whether CSQUTIL can be used as a sample program to PUT/GET a msg onto a queue.
Need to check the CSQUTIL program's features. |
CSQUTIL is more like runmqsc, though it does have additional features. It's certainly not a sample.
Check out the specified libs for actual samples. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
JoePanjang |
Posted: Tue Mar 31, 2009 6:38 pm Post subject: |
|
|
Voyager
Joined: 10 Jul 2002 Posts: 88 Location: Dengkil MALAYSIA
|
PUTMSGS EXEC PGM=CSQ4BCK1
GETMSGS EXEC PGM=CSQ4BCJ1
CSQ4BCG1- Destructive get
CSQ4BCG0- Browse Equivalent
 _________________ Every good deed is charity... |
|
Back to top |
|
 |
Sam Uppu |
Posted: Wed Apr 01, 2009 11:35 am Post subject: |
|
|
 Yatiri
Joined: 11 Nov 2008 Posts: 610
|
JoePanjang wrote: |
PUTMSGS EXEC PGM=CSQ4BCK1
GETMSGS EXEC PGM=CSQ4BCJ1
CSQ4BCG1- Destructive get
CSQ4BCG0- Browse Equivalent
 |
What is teh difference between
GETMSGS EXEC PGM=CSQ4BCJ1
CSQ4BCG1- Destructive get
Destructive get removes the message from a queue and
Quote: |
GETMSGS EXEC PGM=CSQ4BCJ1 |
is a kind of browse?.
Thanks. |
|
Back to top |
|
 |
Vitor |
Posted: Wed Apr 01, 2009 11:49 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
It's all about how the samples are compiled. Check out the z/OS documentation, remembering that the sample code for z/OS is linked twice; once for batch, once for CICS. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
|