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 50 repetitions): Qualified object name
Required, Positional 1
Qualifier 1: Journaled physical file Name
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
Top

Journaled physical file (FILE)

Specifies a maximum of 50 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

file-name
Specify the name of the physical database 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

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

CPF6959
Object &1 is not currently journaled.
CPF6970
Access paths built over file &1 are being journaled.
CPF7002
File &1 in library &2 not a physical file.
CPF703B
Implicit end of access path journaling failed.
CPF703C
DDL transaction prevents journaling operation.
CPF703D
DDL transaction prevents journaling operation.
CPF703E
DDL 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.
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.
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