+

Search Tips | Advanced Search

Use the Command Facility on z/OS

Use the editor to enter or amend MQSC commands to be passed to the queue manager.

From the primary panel, CSQOPRIA, select option 8 Command, to start the Command Facility.

You are presented with an edit session of a sequential file, prefix.CSQUTIL.COMMANDS, used as input to the CSQUTIL COMMAND function; see Issuing commands to IBM MQ .

You do not need to prefix commands with the command prefix string (CPF).

We can continue MQSC commands on subsequent lines by terminating the current line with the continuation characters + or -. Alternatively, use line edit mode to provide long MQSC commands or the values of long attribute values within the command.

    line edit

    To use line edit, move the cursor to the appropriate line in the edit panel and use F4 to display a single line in a scrollable panel. A single line can be up to 32 760 bytes of data.

    To leave line edit:

    • F3 exit saves changes made to the line and exits
    • F12 cancel returns to the edit panel discarding changes made to the line.

    To discard changes made in the edit session, use F12 cancel to terminate the edit session leaving the contents of the file unchanged. Commands are not executed.

    Executing commands

    When you have finished entering MQSC commands, terminate the edit session with F3 exit to save the contents of the file and invoke CSQUTIL to pass the commands to the queue manager. The output from command processing is held in file prefix.CSQUTIL.OUTPUT. An edit session opens automatically on this file so that we can view the responses. Press F3 exit to exit this session and return to the main menu.

Parent topic: Operate IBM MQ for z/OS

Last updated: 2020-10-04