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 Generic name, name, *ALLLIB
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
LOGLVL Logging level *ERRORS, *ALL Optional
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 will no longer have their changes journaled.

Qualifier 1: Object

*ALLLIB
All objects of the specified object types in the specified library will no longer have their changes journaled.
generic-name
Specify the generic name of the object for which changes will no longer be journaled. A generic name is a character string that contains one or more characters followed by an asterisk (*). If a generic name is specified, all objects of the specified object type that have names with the same prefix as the generic name will no longer have their changes journaled.
object-name
Specify the name of the object for which changes will no longer be 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

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

Logging level (LOGLVL)

Specifies the error logging level used. This parameter is used to determine which messages will be sent.

*ERRORS
All diagnostic and escape messages are sent but the command will not send successful completion messages for each object. At the completion of this command, one completion message will be sent.
*ALL
The command sends all the messages that would be sent with *ERRORS and it will also send the successful completion message for each object.
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.
CPF7057
*LIBL not allowed with *ALL or *ALLLIB or a generic name.
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