DISCARD JOURNALNAME

Remove a journal name from the journal names table.

DISCARD JOURNALNAME

Read syntax diagramSkip visual syntax diagramDISCARD JOURNALNAME( data-value)

Conditions: INVREQ, JIDERR, NOTAUTH

This command is threadsafe.

Description

The DISCARD JOURNALNAME command removes a journal definition from the local CICS system, so that the next time the journal definition is used, it is re-created based on the current set of JOURNALMODEL definitions. Thus you can use it in conjunction with DISCARD and CREATE JOURNALMODEL commands to change the definition of a particular journal.

The command takes effect immediately for user journals, including the log of logs journal, and for terminal control autojournals. On the next reference to the journal following the DISCARD, a new journal definition is created using attributes from the JOURNALMODEL definition that matches best at that time.

For forward recovery and auto-journaling journals, however, the journal definition is used only when one of the files using the journal is opened. Hence the command has no effect on forward-recovery logging or auto-journaling operations for VSAM files that are open and using the journal at the time of the DISCARD. They continue to use the log stream referenced by the existing journal until the files are closed, and are not affected by the DISCARD unless the file is subsequently reopened. In addition, if the logstream identifier is present in the VSAM catalog definition for a file, as it must be for an RLS file and may be for others, the catalog value overrides the JOURNALMODEL value.

Neither component of the CICS system log, DFHLOG or DFHSHUNT, is eligible for discard.

See Discarding resource definitions for general information about discards.

Options

JOURNALNAME(data-value)
specifies the 8-character name of the journal that you want to remove.
Note: To discard a journal defined with a numeric identifier specify the journal name as DFHJnn, where nn is the two-digit journal number, in the range 01–99.

Conditions

INVREQ
RESP2 values:
3
The journal specified cannot be discarded.
JIDERR
RESP2 values:
1
The journal cannot found.
NOTAUTH
RESP2 values:
100
The user associated with the issuing task is not authorized to use this command.
101
The user associated with the issuing task is not authorized to access this particular resource in the way required by this command.