ENDJRN (End Journal)
Purpose
The End Journal (ENDJRN) command is used to end the journaling of changes for an object or list of objects. The object types which are supported through this interface are Data Areas (*DTAARA), Data Queues (*DTAQ), Byte Stream Files (*STMF), Directories (*DIR), and Symbolic Links (*SYMLNK). Only objects of type *STMF, *DIR or *SYMLNK that are in the Root ('/'), QOpensys, and User-defined file systems are supported.
All objects of the supported types that are currently being journaled to a specific journal may also have journaling stopped.
Note: For other ways to end journaling see the following commands:
- Access Paths - End Journal Access Path (ENDJRNAP)
- Physical Files - End Journal Physical File (ENDJRNPF)
- Other Objects - End Journal Object (ENDJRNOBJ)
Restrictions
- Objects specified on the command cannot be in use for any reason at the time the command is running.
- If OBJ(*ALL) is specified, a journal name must be specified (JRN parameter).
- If a journal name and a list of object names are specified, all objects must be currently journaled to the indicated journal.
- The specified journal cannot be a remote journal.
- At least one of parameter OBJ or OBJFID must be specified.
Required Parameters
- OBJ
- Specifies a maximum of 300 object path names for which changes will no longer be journaled. Only objects whose path name identifies an object of type *STMF, *DIR, *SYMLNK, *DTAARA or *DTAQ are supported.
Single value
*ALL: All objects of the supported type that are currently being journaled to the indicated journal are to stop having changes journaled. If *ALL is specified, parameter OBJFID must not be specified.
Element 1: Object Name
'object-path-name': Specify the path name of the object for which changes are no longer journaled.
A pattern can be specified in the last part of the path name. An asterisk (*) matches any number of characters and a question mark (?) matches a single character. If the path name is qualified or contains a pattern it must be enclosed in apostrophies. Symbolic links within the path name will not be followed. If the path name begins with the tilde (~) character, then the path is assumed to be relative to the appropriate home directory.
Additional information about path name patterns is in the Integrated File System Introduction topic in the Information Center.
Element 2: Include or Omit
The second element specifies whether names that match the pattern should be included or omitted from the operation. Note that in determining whether a name matches a pattern, relative name patterns are always treated as relative to the current working directory.
*INCLUDE: The objects that match the object name pattern are to stop having their changes journaled unless overridden by an *OMIT specification.
*OMIT: The objects that match the object name pattern are not to be included with the objects that are to stop having their changes journaled. This overrides an *INCLUDE specification and is intended to be used to omit a subset of a previously selected path.
- OBJFID
- Specifies a maximum of 300 file identifiers (FID) for which changes are no longer to be journaled. FIDs are a unique identifier associated with integrated file system related objects. This field is input in hexadecimal format. Only objects whose FID identifies an object of type *STMF, *DIR, *SYMLNK, *DTAARA or *DTAQ are supported.
file-identifier: Objects identified with the FID are no longer journaled.
Optional Parameters
- JRN
- Specifies the path name of the journal to which changes are currently being journaled.
*OBJ: The path name of the journal is determined by the system from the specified object path name or object file identifier.
journal-path-name: Specify the path name of the journal to which changes are currently being journaled.
- SUBTREE
- Specifies whether the objects in directory subtrees are to stop having their changes journaled.
Note: This parameter is ignored if the OBJFID parameter is specified.
*NONE: Only the objects that match the selection criteria are processed. The objects within selected directories are not implicitly processed.
*ALL: All objects that meet the selection criteria are processed in addition to the entire subtree of each directory that matches the selection criteria. The subtree includes all subdirectories and the objects within those subdirectories.
- PATTERN
- Specifies a maximum of 20 patterns to be used to include or omit objects for the end journal operation.
Note: This parameter is ignored if the OBJFID parameter is specified.
Element 1: Name Pattern
'*': All objects that match the input OBJ parameter are to be included into the end journal operation or omitted from the end journal operation.
name-pattern: Specify the pattern to either include or omit objects for the end journal operation. Only the last part of the path name will be considered for the name pattern match. Path name delimiters are not allowed in the name pattern.
If the Name Pattern parameter is not specified the default will be to match all patterns.
A pattern can be specified in the last part of the path name. An asterisk (*) matches any number of characters and a question mark (?) matches a single character. If the path name is qualified or contains a pattern it must be enclosed in apostrophies. Symbolic links within the path name will not be followed. If the path name begins with the tilde (~) character, then the path is assumed to be relative to the appropriate home directory.
Additional information about path name patterns is in the Integrated File System Introduction topic in the Information Center.
Element 2: Include or Omit
The second element specifies whether names that match the pattern should be included or omitted from the operation. Note that in determining whether a name matches a pattern, relative name patterns are always treated as relative to the current working directory.
Note: The SUBTREE parameter specifies whether directory subtrees are included or omitted. *INCLUDE: The objects that match the object name pattern are to stop having their changes journaled unless overridden by an *OMIT specification.
*OMIT: The objects that match the object name pattern are not to be included with the objects that are to stop having their changes journaled. This overrides an *INCLUDE specification and is intended to be used to omit a subset of a previously selected pattern.
Examples for ENDJRN
Example 1: End All Non-Database Journaling
ENDJRN OBJ(*ALL) JRN('/qsys.lib/mylib.lib/myjrn.jrn')This command stops the journaling of all changes to all objects of type *DIR, *STMF, *SYMLNK, *DTAARA and *DTAQ to journal /qsys.lib/mylib.lib/myjrn.jrn.
Example 2: End Journaling with Omit of Directory
ENDJRN OBJ(('/mypath' *INCLUDE) ('/mypath/myobject' *OMIT))This command stops the journaling of all changes to all first-level objects in directory /mypath except object /mypath/myobject. Object /mypath/myobject will continue to be journaled.
Example 3: End Journaling with Pattern Selection
ENDJRN OBJ(('/mypath' *INCLUDE) ('/mypath/mysubdir' *OMIT)) SUBTREE(*ALL) PATTERN(('*.txt' *INCLUDE))This command stops the journaling of all changes to all objects in directory /mypath of type *DIR, *STMF, and *SYMLNK that match pattern '*.txt'. Any objects within directory /mypath/mysubdir will continue to be journaled.
Example 4: End Journaling using File Identifiers
ENDJRN OBJFID(00000000000000007E09BDB000000009 00000000000000009E09BDB00000000A)This command stops the journaling of all changes to the objects of type *DIR, *STMF, *SYMLNK, *DTAARA or *DTAQ represented by the specified file identifiers.
Example 5: End Journaling on a set of Data Areas
ENDJRN OBJ(('/qsys.lib/mylib.lib/mydata*.dtaara')) JRN('/qsys.lib/mylib.lib/myjrn.jrn')This command stops the journaling of all changes to the objects of type *DTAARA in library MYLIB that begin with the characters 'MYDATA'.
Error messages for ENDJRN
*ESCAPE Messages
- CPFA0D4
- File system error occurred.
- 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.