DELETEQ TS

Deletes a temporary storage queue.

Syntax

DELETEQ TS

Read syntax diagramSkip visual syntax diagram DELETEQ TS QUEUE( name)QNAME( name)SYSID( name)

Conditions: INVREQ, IOERR, ISCINVREQ, NOTAUTH, QIDERR, SYSIDERR

Description

DELETEQ TS deletes all the temporary data that is associated with a temporary storage queue in either main or auxiliary storage. If in auxiliary storage, the queue can reside on a remote system. All storage that is associated with the queue is freed.

Delete temporary data as soon as possible to avoid using excessive amounts of storage.

Options

QUEUE(name)
Specifies the symbolic name (1–8 characters) of the queue to be deleted. The name cannot consist solely of binary zeros and must be unique within the CICS system. If the name has less than 8 characters, you must still use an 8-character field, padded with blanks if necessary.

For a description of how queue names are defined, see Temporary Storage Definitions (TSD)

Note: Do not use X'FA' through X'FF' as the first character of the name, as these characters are reserved for CICS® use.
QNAME(name)
An alternative to QUEUE, QNAME specifies the symbolic name (1–16 characters) of the queue to be deleted. The name may not consist solely of binary zeros and must be unique within the CICS system. If the name has less than 16 characters, you must still use a 16-character field, padded with blanks if necessary.
SYSID(name)
Specifies on which CICS region the DELETEQ is to run. The SYSID name has one through four characters. For a full description of the SYSID option, see SYSID.

If the SYSID option is not specified, it defaults to the value that is in the RemoteSysId attribute of the TSD entry that is matched with the queue name that is requested in the QUEUE or QNAME option.

Conditions

INVREQ
Occurs for the following conditions, depending on the options that are specified on the DELETEQ TS command:
  • The specified queue is in doubt (that is, locked upon restart and awaiting transaction resolution).
  • The queue is remote and has been created by CICS internal code.

Default action: Terminates the task abnormally.

IOERR
Occurs if an I/O error occurs during the temporary storage operation.

(For information about handling the IOERR condition, see IOERR condition processing.) IOERR can occur for recoverable auxiliary TS queues if the file server is restarted while CICS is still running.

Default action: Terminates the task abnormally.
ISCINVREQ
Occurs if the remote system indicates a failure that does not correspond to a known condition.

Default action: Terminates the task abnormally.

NOTAUTH
Occurs for the following conditions:
  • A resource security check is unsuccessful on QUEUE(name) or QNAME(name).
  • SYSID is specified by a transaction that is defined with the RSLCheck attribute set to either internal or external.

Default action: Terminates the task abnormally.

QIDERR
Occurs if the specified queue cannot be found in either main or auxiliary storage.

Default action: Terminates the task abnormally.

SYSIDERR
Occurs if a problem with the communications configuration prevents the DELETEQ from proceeding. For example:
  • The connection that is named in the SYSID option is not the name of a Communications Definition (CD) entry.
  • The SYSID option references a CD entry that is incorrectly configured.
  • The SYSID option references a CD entry that is marked as out of service.

It can also occur if the connection to the remote system is closed. This can be because the remote system is not available.

Default action: Terminates the task abnormally.