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

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.

Type
*QUAL
Required
Yes
Case
Uppercase
*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

Type
*NAME
Required
No
Length
10
Case
Uppercase

Library Library

Type
*NAME
Required
No
Default
*LIBL
Length
10
Case
Uppercase

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.

Type
*CHAR
Required
No
Default
*NO
Length
4
Case
Uppercase

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.

IBM command documentation

Generated from os/cl/catalog/DLTJRN.json and os/cl/help/DLTJRN.json.