Where allowed to run: All environments (*ALL) Threadsafe: Yes |
Parameters Examples Error messages |
The Start Journal Object (STRJRNOBJ) command is used to start journaling changes (made to an object or list of objects) to a specific journal. The object types which are supported through this interface are Data Areas (*DTAARA) and Data Queues (*DTAQ). For more information about journal entries which can be sent, see the Journal Management information in the iSeries Information Center at http://www.ibm.com/eserver/iseries/infocenter.
Additionally, the user can specify that only the after image or both the before and the after images of an object of type *DTAARA be journaled. Before images are necessary to remove journaled changes using the Remove Journaled Changes (RMVJRNCHG) command.
After journaling begins for the object, the user should save the journaled object to preserve its journal attribute information. Also, the object must be saved because, for example, journaled changes cannot be applied to a version of the object that was saved before journaling was in effect.
For other ways to start journaling see the following commands:
Restrictions:
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
OBJ | Object | Values (up to 300 repetitions): Qualified object name | Required, Positional 1 |
Qualifier 1: Object | Name | ||
Qualifier 2: Library | Name, *LIBL, *CURLIB | ||
OBJTYPE | Object type | *DTAARA, *DTAQ | Required, Positional 2 |
JRN | Journal | Qualified object name | Required, Positional 3 |
Qualifier 1: Journal | Name | ||
Qualifier 2: Library | Name, *LIBL, *CURLIB | ||
IMAGES | Images | *AFTER, *BOTH | Optional |
Top |
Specifies a maximum of 300 qualified object names for which changes are to be journaled.
This is a required parameter.
Qualifier 1: Object
Qualifier 2: Library
Top |
Specifies the object type for which changes are to be journaled.
This is a required parameter.
Top |
Specifies the journal that receives the journaled changes.
This is a required parameter.
Qualifier 1: Journal
Qualifier 2: Library
Top |
Specifies the kinds of images that are written to the journal receiver for changes to objects.
Note: The value *BOTH is only valid for *DTAARA objects.
Top |
STRJRNOBJ OBJ(DTALIB/MYDTAARA) OBJTYPE(*DTAARA) JRN(MYLIB/JRNLA)
This command journals all changes to data area MYDTAARA in library DTALIB to journal JRNLA in library MYLIB. Only the after images of updates are written to the journal.
Top |
*ESCAPE Messages
Top |