CL Command Reference - ENDJRNOBJ
CL Command List > ENDJRNOBJ Reference
Description:
The End Journal Object (ENDJRNOBJ) command is used to end journaling of changes for an object or list of objects.
All objects, of object types *DTAARA and *DTAQ, that are currently being journaled to a specific journal may also have journaling stopped.
For other ways to end journaling see the following commands:
. Access paths - End Journal Access Path (ENDJRNAP)
. Integrated file system objects - End Journal (ENDJRN)
. Physical files - End Journal Physical File (ENDJRNPF)
Restrictions:
. Objects specified on the command cannot be in use for any reason at the time the command is running.
. If OBJ(*ALL) or OBJTYPE(*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.
Examples:
Example 1: End Journaling All Data Areas and Data Queues
ENDJRNOBJ OBJ(*ALL) OBJTYPE(*ALL) JRN(MYLIB/MYJRN)
This command stops journaling all changes to all objects of type *DTAARA and *DTAQ to journal MYJRN in library MYLIB.
Example 2: End Journaling for Specific Data Area
ENDJRNOBJ OBJ(DTALIB/MYDTAARA) OBJTYPE(*DTAARA)
This command stops the journaling of all changes to data area MYDTAARA in library DTALIB.