End Journal Object (ENDJRNOBJ)

Where allowed to run: All environments (*ALL)
Threadsafe: Yes
Parameters
Examples
Error messages

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:

Restrictions:

Top

Parameters

Keyword Description Choices Notes
OBJ Object Single values: *ALL
Other values (up to 300 repetitions): Qualified object name
Required, Positional 1
Qualifier 1: Object Name
Qualifier 2: Library Name, *LIBL, *CURLIB
OBJTYPE Object type *DTAARA, *DTAQ, *ALL Required, Positional 2
JRN Journal Single values: *OBJ
Other values: Qualified object name
Optional, Positional 3
Qualifier 1: Journal Name
Qualifier 2: Library Name, *LIBL, *CURLIB
Top

Object (OBJ)

Specifies a maximum of 300 objects for which changes are no longer to be journaled.

This is a required parameter.

Single values

*ALL
All objects of the specified object types that are currently being journaled to the indicated journal are to stop having their changes journaled.

Qualifier 1: Object

object-name
Specify the name of the object for which journaling is to be ended.

Qualifier 2: Library

*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.
library-name
Specify the name of the library to be searched.
Top

Object type (OBJTYPE)

Specifies the object type for which journaling is to be ended.

This is a required parameter.

*DTAARA
Data area objects are to have their journaling ended.
*DTAQ
Data queue objects are to have their journaling ended.
*ALL
All objects of the object types that are supported on this command are to have their journaling ended.

Note: If OBJTYPE(*ALL) is specified, then OBJ(*ALL) must also be specified.

Top

Journal (JRN)

Specifies the qualified name of the journal to which changes in the objects are currently being journaled.

Single values

*OBJ
The journal is determined by the system from the specified object name and object type.

Qualifier 1: Journal

journal-name
Specify the name of the journal to which the indicated objects are currently being journaled.

Qualifier 2: Library

*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.
library-name
Specify the name of the library to be searched.
Top

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.

Top

Error messages

*ESCAPE Messages

CPF700B
&1 of &2 objects have ended journaling.
CPF705A
Operation failed due to remote journal.
CPF9801
Object &2 in library &3 not found.
CPF9802
Not authorized to object &2 in &3.
CPF9803
Cannot allocate object &2 in library &3.
CPF9810
Library &1 not found.
CPF9820
Not authorized to use library &1.
CPF9825
Not authorized to device &1.
CPF9830
Cannot assign library &1.
CPF9873
ASP status is preventing access to object.
CPF9875
Resources exceeded on ASP &1.
Top