Retrieve Journal Identifier Information (QJORJIDI) API


  Required Parameter Group:


  Default Public Authority: *USE

  Threadsafe: Yes

The Retrieve Journal Identifier Information (QJORJIDI) API retrieves the current name and type of the object associated with the specified journal identifier (JID) for the specified journal. A JID is unique; it is assigned to a particular object when journaling is started for the object. The JID associates the journal entries with a particular object. See Maintaining a JID for a Journaled Object for more information about how the system maintains a JID value for a journaled object.

This API retrieves the object name and type associated with a particular JID if:

This API cannot retrieve an object name for a specified JID if:

Note: The change journal operation can be a user initiated Change Journal (CHGJRN) command or from system change-journal management support. System change-journal management support is activated by a Create Journal (CRTJRN) or Change Journal (CHGJRN) command with the MNGRCV(*SYSTEM) parameter and value.

If an object name or file identifier cannot be retrieved, blanks are returned for the object name, library name, member name, type, and object file identifier.

The JID for the object associated with a particular journal entry is in the fixed-length portion of the journal entry when specifying:


Maintaining a JID for a Journaled Object

The following are the system rules for maintaining a JID for a journaled object:

See the Journal management topic for more information about what object types are associated with the various types of journal entries.

Restrictions

Authorities and Locks

Journal Authority
*USE, *OBJEXIST
Journal Library Authority
*EXECUTE
Currently Attached Receiver Authority
*USE
Currently Attached Receiver Library Authority
*EXECUTE
Journal Lock
*SHRRD

Required Parameter Group

Receiver variable
OUTPUT; CHAR(*)

The receiver variable that is to receive the information requested. You can specify the size of the area smaller than the format requested as long as you specify the length of receiver variable parameter correctly. As a result, the API returns only the data the area can hold.

Length of receiver variable
INPUT; BINARY(4)

The length of the receiver variable. The length must be at least 8 bytes. If the variable is not long enough to hold the information, the data is truncated. If the length is larger than the size of the receiver variable, the results beyond the length of the largest format are not predictable.

Qualified journal name
INPUT; CHAR(20)

The name of the journal that is to be used when retrieving the JID information and the library in which it resides. The first 10 characters contain the journal name and the second 10 characters contain the library name. The special values supported for the library name are:


Journal identifier (JID) value
INPUT; CHAR(10)

The journal identifier (JID) value that is to be used for the retrieve operation. Information will be retrieved based on this JID value.

Format name
INPUT; CHAR(8)

The format name RJID0100 is the only valid format name used bythis API. For more information, see RJID0100 Format.

Error code
I/O; CHAR(*)

The structure in which to return error information. For the format of the structure, see Error code parameter.

RJID0100 Format

The structure of the information returned is determined by the specified format name. For detailed descriptions of the fields, see Field Descriptions.



Field Descriptions

Bytes available. The number of bytes of data available to be returned. All available data is returned if enough space is provided.

Bytes returned. The number of bytes of data returned.

Journal identifier (JID) value. The JID value used to retrieve the object name, object library name, member name, and object type.

Journal library name. The name of the library for the journal. If *LIBL or *CURLIB was specified as input, then this field will contain the actual library name for the journal.

Journal name. The name of the journal.

Member name. If the object type is *QDDS or *QDDSI, then this field contains the member name. Otherwise, this field is returned as blanks.

Object file identifier. The file identifier of the object associated with the specified JID value. If the object name could not be retrieved for the specified JID value, then this field is returned as blanks. File identifiers are unique identifiers associated with integrated file system related objects. The Get Path Name of Object from Its File ID (Qp0lGetPathFromFileID) API can be used to find the path name of an object using the file identifier.

If the object type is not *DIR, *STMF, or *SYMLNK, then this field is returned as blanks.

Object library name. The name of the library for the object associated with the specified JID value. If the object name could not be retrieved for the specified JID value, then this field is returned as blanks.

If the object type is *DIR, *STMF, or *SYMLNK, then this field is returned as blanks.

Object name. The name of the object associated with the specified JID value. If the object name could not be retrieved for the specified JID value, then this field is returned as blanks.

If the object type is *DIR, *STMF, or *SYMLNK, then this field is returned as blanks.

Object type. The type of the object associated with the specified JID value. If the object name could not be retrieved for the specified JID value, then this field is returned as blanks. The following lists the valid object types that can be retrieved for a specified JID value:

Error Messages



API introduced: V3R1

[ Back to top | Journal and Commit APIs | APIs by category ]