Author |
Message
|
ipmqadm |
Posted: Mon Aug 15, 2011 6:53 am Post subject: Simple Z/OS REXX scripts for v7 MQSC |
|
|
Acolyte
Joined: 18 Apr 2007 Posts: 68
|
I'm trying to find a source to research to create some simple REXX scripts that interface with MQSC commands on Z/OS. Having issues...
Can anyone here point me to some simple examples? |
|
Back to top |
|
 |
Vitor |
Posted: Mon Aug 15, 2011 7:00 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Interface how?
How does this differ from using MQSC commands via CSQUTIL? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
ipmqadm |
Posted: Mon Aug 15, 2011 8:09 am Post subject: |
|
|
Acolyte
Joined: 18 Apr 2007 Posts: 68
|
CSQUTIL, from my limited knowledge of CSQUTIL, requires to you interface via jcl doesn't it? I've only seen CSQUTIL embedded with JCL.
I don't want jcl jobs to be sumitted. I'm wanting to execute some simple REXX scripts from TSO opt. 6 just like you would execute the CSQOREXX script to access the MQ panels. |
|
Back to top |
|
 |
bruce2359 |
Posted: Mon Aug 15, 2011 8:14 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
Search for MA19 support pac. _________________ 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: Mon Aug 15, 2011 8:54 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
bruce2359 wrote: |
Search for MA19 support pac. |
Shouldn't that be MA95 in this day & age??  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
Vitor |
Posted: Mon Aug 15, 2011 8:56 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
ipmqadm wrote: |
CSQUTIL, from my limited knowledge of CSQUTIL, requires to you interface via jcl doesn't it? I've only seen CSQUTIL embedded with JCL. |
Quite true.
I've never had any use for this kind of scripting; you either want a snapshot of the estate (in which case the supplied ISPF panels are fine) or you want a repeatable activity (even if it's repeated on an ad-hoc basis!) in which case I write JCL.
But if everyone agreed with me, they'd be no call for the support pac!  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
bruce2359 |
Posted: Mon Aug 15, 2011 9:18 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
Vitor wrote: |
bruce2359 wrote: |
Search for MA19 support pac. |
Shouldn't that be MA95 in this day & age??  |
I googled. MA19 was the first IBM hit. I gave up after that.  _________________ 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 |
|
 |
bruce2359 |
Posted: Mon Aug 15, 2011 9:22 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
For those unaware, REXX is a very powerful programming language. REXX runs on Windoze, UNIX, z/OS, z/VM - pretty much all platforms. REXX also includes facilities (hooks) into the o/s where it is running to do admin tasks. _________________ 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: Mon Aug 15, 2011 9:25 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
bruce2359 wrote: |
I googled. MA19 was the first IBM hit. I gave up after that.  |
And after all the grief we dispense about searching properly.....  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
bruce2359 |
Posted: Mon Aug 15, 2011 10:22 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
Vitor wrote: |
bruce2359 wrote: |
I googled. MA19 was the first IBM hit. I gave up after that.  |
And after all the grief we dispense about searching properly.....  |
Ouch! Was that a trout? _________________ 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: Mon Aug 15, 2011 10:28 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
bruce2359 wrote: |
Vitor wrote: |
bruce2359 wrote: |
I googled. MA19 was the first IBM hit. I gave up after that.  |
And after all the grief we dispense about searching properly.....  |
Ouch! Was that a trout? |
Who was that strange, masked fisherman?
More of a small carp I think....  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
ipmqadm |
Posted: Mon Aug 15, 2011 12:12 pm Post subject: |
|
|
Acolyte
Joined: 18 Apr 2007 Posts: 68
|
|
Back to top |
|
 |
Mr Butcher |
Posted: Tue Aug 16, 2011 2:43 am Post subject: |
|
|
 Padawan
Joined: 23 May 2005 Posts: 1716
|
MA95 is the supportpac required for REXX - MQ. You can then use the MQ API, or issue commands to MQ.
Although there is CSQUTIL and the CSQOREXX panels i do use MA95 / REXX for some utility stuff and scripting, e.g. for some IVP stuff, like sending a message and reading the answer and so on.
Check the documentation that comes with MA95. If you still need some little rexx samples, please let me know. _________________ Regards, Butcher |
|
Back to top |
|
 |
bob_buxton |
Posted: Tue Aug 16, 2011 1:15 pm Post subject: |
|
|
 Master
Joined: 23 Aug 2001 Posts: 266 Location: England
|
There is now support for running CSQUTIL command interface from the CSQOREXX ISPF panels without the need to submit JCL.
This includes support for command lines longer than 80 characters without needing continuation characters. _________________ Bob Buxton
Ex-Websphere MQ Development |
|
Back to top |
|
 |
|