Command reference / db
DLTJRN
Delete Journal
The Delete Journal (DLTJRN) command deletes the specified journal or journals from the system. A specific journal name or a generic journal name can be specified, optionally qualified by a library name.
Allowed environments: *ALL.
Positional parameters: 2.
Restrictions
- Objects cannot be journaled to the specified journal, nor can any job that used this journal for commitment control still be active, when this command is issued.
- A journal cannot be deleted if it is actively receiving journal entries from its source journal or replicating journal entries to another remote journal.
- To determine if any objects are being journaled, issue the Work with Journal Attributes (WRKJRNA) command. If journaling is active, end it with ENDJRNAP, ENDJRN, ENDJRNOBJ, or ENDJRNPF.
Parameters
JRN
Journal
Specifies the name and library of the journal or journals being deleted. A specific journal name or a generic journal name can be specified. This is a required parameter.
*LIBL- All libraries in the library list for the current thread are searched until the first match is found.
*CURLIB- The current library for the thread is searched. If no library is specified as the current library for the thread, the QGPL library is searched.
*USRLIBL- The current library and the libraries in the user portion of the library list are searched.
*ALLUSR- All user libraries are searched.
*ALL- All libraries in the system, including QSYS, are searched.
Qualified parts (object, then library; write LIBRARY/OBJECT)
Journal
Journal
Library
Library
Suggested / special values:
*LIBL, *CURLIB
DLTRCV
Delete receivers
On this system, specifies whether the journal receivers attached to the journal are deleted with it. The IBM i 7.5 DLTJRN command has no such parameter: on a real system the receivers stay and are deleted with DLTJRNRCV.
Allowed values:
*NO, *YES
*NO- The receivers stay on the system, detached from the journal.
*YES- The receivers of the journal are deleted with it.
Examples
DLTJRN JRN(MYLIB/JRNLA)
This command deletes the journal named JRNLA in library MYLIB from the system.
Generated from os/cl/catalog/DLTJRN.json and os/cl/help/DLTJRN.json.