Command reference / db

WRKJRNA

Work with Journal Attributes

The Work with Journal Attributes (WRKJRNA) command displays or prints the creation and operational attributes of a journal, including the name of the journal receiver currently attached to the journal. From the primary display, options can be selected to display journaled objects, remote journal information, the receiver directory, or detailed information about a journal receiver; or to delete receivers from the receiver directory. The command can also generate an output file listing journaled objects.

Allowed environments: *ALL. Positional parameters: 2.

Parameters

JRN Journal

Specifies the journal whose attributes are to be displayed. 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 job is searched. If no library is specified as the current library for the job, QGPL is used.
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

OUTPUT Output

Specifies where the output from the command is sent.

Type
*CHAR
Required
No
Default
*
Length
6
Case
Uppercase

Allowed values: *, *PRINT

*
The output is displayed (if requested by an interactive job) or printed with the job's spooled output (if requested by a batch job).
*PRINT
The output is printed with the job's spooled output.
*OUTFILE
The output is directed to the database file specified for the OUTFILE parameter.

Examples

WRKJRNA JRN(MYLIB/JRNLA)

This command allows you to work with the current journal attributes of JRNLA in library MYLIB.

WRKJRNA JRN(YOURLIB2/JRNLB) OUTPUT(*PRINT) DETAIL(*OUTPUT)

Prints all information related to journal JRNLB in library YOURLIB2, including journal attributes, receiver directory, remote journal information, and lists of all journaled objects.

WRKJRNA JRN(YOURLIB4/JRNLD) OUTPUT(*PRINT) DETAIL(*CURATR *JRNFILE)

Prints a subset of information about journal JRNLD: the journal attributes and a list of files being journaled.

IBM command documentation

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