End Journal Library (ENDJRNLIB)
| Where allowed to run: All environments (*ALL) Threadsafe: Conditional |
Parameters Examples Error messages |
The End Journal Library (ENDJRNLIB) command is used to end journaling of changes for a library or list of libraries.
All libraries 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)
- Other objects - End Journal Object (ENDJRNOBJ)
Restrictions:
- If LIB(*ALL) is specified, a journal name must be specified (JRN parameter).
- If a journal name and a list of library names are specified, all objects must be currently journaled to the indicated journal.
- The specified journal must be a local journal. RCVSIZOPT(*MAXOPT3) specified.
- Lock Processing
The library to end journaling is locked with a read exclusive lock (*EXCLRD).
| Top |
Parameters
| Keyword | Description | Choices | Notes |
|---|---|---|---|
| LIB | Library | Single values: *ALL Other values (up to 300 repetitions): Generic name, name |
Required, Positional 1 |
| JRN | Journal | Single values: *OBJ 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 |
Library (LIB)
Specifies a maximum of 300 library names for which changes are no longer to be journaled.
Single values
- *ALL
- All libraries that are currently being journaled to the indicated journal will no longer have their changes journaled.
Other values
- generic-name
- Specify the generic name of the library 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 libraries that have names with the same prefix as the generic name will no longer have their changes journaled.
- library-name
- Specify the name of the library for which changes will no longer be journaled.
| Top |
Journal (JRN)
Specifies the qualified name of the journal to which changes in the libraries are currently being journaled.
Single values
- *OBJ
- The journal is determined by the system from the specified library name.
Qualifier 1: Journal
- journal-name
- Specify the name of the journal to which the indicated libraries 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 Libraries
ENDJRNLIB LIB(*ALL) JRN(MYLIB/MYJRN)
This command stops journaling all changes to all libraries to journal MYJRN in library MYLIB.
Example 2: End Journaling for Specific Library
ENDJRNLIB LIB(DTALIB)
This command stops the journaling of all changes to library DTALIB.
| Top |
Error messages
*ESCAPE Messages
- CPF700B
- &1 of &2 objects have ended journaling.
- 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.
| Top |