CL Command Reference - ENDJRN

CL Command List > ENDJRN Reference

Description:

The End Journal (ENDJRN) command is used to end the journaling of changes for an object or list of objects. The object types which are supported through this interface are Data Areas (*DTAARA), Data Queues (*DTAQ), Byte Stream Files (*STMF), Directories (*DIR), and Symbolic Links (*SYMLNK). Only objects of type *STMF, *DIR, or *SYMLNK that are in the ¡åroot¡å (/), QOpenSys, and user-defined file systems are supported.

All objects of the supported types that are currently being journaled to a specific journal may also have journaling stopped.

For other ways to end journaling see the following commands:
1. Access Paths - End Journal Access Path (ENDJRNAP)
2. Physical Files - End Journal Physical File (ENDJRNPF)
3. Other Objects - End Journal Object (ENDJRNOBJ)

Restrictions:

. Objects specified on the command cannot be in use for any reason at the time the command is running.

. If OBJ(*ALL) is specified, a journal name must be specified (JRN parameter).

. If a journal name and a list of object names are specified, all objects must be currently journaled to the indicated journal.

. The specified journal must be a local journal.

. At least one of parameter OBJ or OBJFID must be specified.


Examples:

Example 1: End All Non-Database Journaling

ENDJRN OBJ(*ALL) JRN(¡¯/qsys.lib/mylib.lib/myjrn.jrn¡¯)

This command stops the journaling of all changes to all objects of type *DIR, *STMF, *SYMLNK, *DTAARA and *DTAQ to journal /qsys.lib/mylib.lib/myjrn.jrn.



Example 2: End Journaling with Omit of Directory

ENDJRN OBJ((¡¯/mypath¡¯ *INCLUDE) (¡¯/mypath/myobject¡¯ *OMIT))

This command stops the journaling of all changes to all first-level objects in directory /mypath except object /mypath/myobject. Object /mypath/myobject will continue to be journaled.



Example 3: End Journaling with Pattern Selection

ENDJRN OBJ((¡¯/mypath¡¯ *INCLUDE) (¡¯/mypath/mysubdir¡¯ *OMIT))
SUBTREE(*ALL) PATTERN((¡¯*.txt¡¯ *INCLUDE))

This command stops the journaling of all changes to all objects in directory /mypath of type *DIR, *STMF, and *SYMLNK that match pattern ¡¯*.txt¡¯. Any objects within directory /mypath/mysubdir will continue to be journaled.



Example 4: End Journaling using File Identifiers

ENDJRN OBJFID(00000000000000007E09BDB000000009
00000000000000009E09BDB00000000A)

This command stops the journaling of all changes to the objects of type *DIR, *STMF, *SYMLNK, *DTAARA or *DTAQ represented by the specified file identifiers.



Example 5: End Journaling on a set of Data Areas

ENDJRN OBJ((¡¯/qsys.lib/mylib.lib/mydata*.dtaara¡¯))
JRN(¡¯/qsys.lib/mylib.lib/myjrn.jrn¡¯)

This command stops the journaling of all changes to the objects of type *DTAARA in library MYLIB that begin with the characters ¡¯MYDATA¡¯.