Hoe to set an MQ local queue to 'GET DISABLED' ion a script?

Document ID : KB000093494
Last Modified Date : 30/04/2018
Show Technical Document Details
Introduction:
I want to write an Ops/MVS script to talk to Sysview and to 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 to I simulate over-typing the 'GET' field in order to GET DISABLE the queue? 
Instructions:
You probably want to look at the FILL command.
If you're using the Rexx API to issue MQQLOCAL, then do a SELECT to filter the data for only the queues you want to disable.
You could then do a: FILL GET DISABLE 1 * to update the GET field to be DISABLE on all rows that were selected.