How to set an MQ local queue to 'GET DISABLED' in a script?
search cancel

How to set an MQ local queue to 'GET DISABLED' in a script?

book

Article ID: 93494

calendar_today

Updated On:

Products

SYSVIEW Performance Management

Issue/Introduction

I want to write an OPS/MVS script to talk to SYSVIEW which can set all MQ local queues matching certain criterian to 'GET DISABLED'.
I know how to get the correct QLOCAL display in a script and to use the 'SET' command to get the filtered list if queues, but how do I simulate over-typing the 'GET' field in order to GET DISABLE the queue? 

Resolution

For this, use the FILL command.
If using the Rexx API to issue MQQLOCAL, then do a SELECT to filter the data for only the queues that need to be disabled.
Then do a: FILL GET DISABLE 1 * to update the GET field to be DISABLE on all rows that were selected.

Additional Information

CR24- CAM: typos, rel info, and prod list