End Journal Physical File (ENDJRNPF)

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

The End Journal Physical File (ENDJRNPF) command is used to end journaling of changes for a specific physical file and all of its members.

All physical files currently being journaled to a specific journal may also have journaling stopped.

When the file for which journaling is ended is a distributed file, an attempt is made to distribute the ENDJRNPF command if journaling was successfully ended locally. Even if the distribution request fails, the local file is not journaled. In addition, if a journal and file name are specified, and the file is distributed, an attempt to distribute the ENDJRNPF request is made even if the file is not journaled locally.

For other ways to end journaling see the following commands:

Restrictions:

Top

Parameters

Keyword Description Choices Notes
FILE Journaled physical file Single values: *ALL
Other values (up to 300 repetitions): Qualified object name
Required, Positional 1
Qualifier 1: Journaled physical file Generic name, name, *ALLLIB
Qualifier 2: Library Name, *LIBL, *CURLIB
JRN Journal Single values: *FILE
Other values: Qualified object name
Optional, Positional 2
Qualifier 1: Journal Name
Qualifier 2: Library Name, *LIBL, *CURLIB
LOGLVL Logging level *ERRORS, *ALL Optional
Top

Journaled physical file (FILE)

Specifies a maximum of 300 physical files for which changes will no longer be journaled.

This is a required parameter.

Single values

*ALL
All physical files currently being journaled to the specified journal no longer have their changes journaled.

Qualifier 1: Journaled physical file

*ALLLIB
All physical files in the specified library will no longer have their changes journaled.
generic-name
Specify the generic name of the physical file 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 physical files that have names with the same prefix as the generic name will no longer have their changes journaled.
file-name
Specify the name of the physical file 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

Journal (JRN)

Specifies the name of the journal to which changes in the indicated files are currently being journaled.

Single values

*FILE
The journal is determined by the system from the specified file names.

Qualifier 1: Journal

journal-name
Specify the name of the journal to which changes in the specified files 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

ENDJRNPF   FILE(MYLIB/MYFILE)

This command stops the journaling of all changes to all members of file MYFILE in library MYLIB. Changes made after this command is run are not journaled.

Top

Error messages

*ESCAPE Messages

CPF69A9
Internal error detected, error code &2.
CPF6970
Access paths built over file &1 are being journaled.
CPF70A6
Object &1 in library &2 member &3 is not eligible for the requested operation.
CPF700B
&1 of &2 objects have ended journaling.
CPF7002
File &1 in library &2 not a physical file.
CPF703B
Implicit end of access path journaling failed.
CPF703C
Commitment control transaction prevents journaling operation.
CPF7031
Cannot allocate member &3 file &1 in &2.
CPF7032
ENDJRNPF or ENDJRNAP command failed.
CPF7033
Start or end journaling failed for member &3.
CPF7034
Logical damage of file &1 in &2.
CPF704C
Journaling ended locally but distributed requests failed.
CPF704D
ENDJRNPF command failed.
CPF705A
Operation failed due to remote journal.
CPF7057
*LIBL not allowed with *ALL or *ALLLIB or a generic name.
CPF708D
Journal receiver found logically damaged.
CPF9801
Object &2 in library &3 not found.
CPF9802
Not authorized to object &2 in &3.
CPF9803
Cannot allocate object &2 in library &3.
CPF9809
Library &1 cannot be accessed.
CPF9810
Library &1 not found.
CPF9812
File &1 in library &2 not found.
CPF9820
Not authorized to use library &1.
CPF9822
Not authorized to file &1 in library &2.
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