Get Journal Info
get_journal_infoList physical files in an IBM i library with journaling, journal images, omitted entries, and primary key status. Flags tables not journaled or lacking both images for replication.
Instructions
List the physical data files in a library with their journal, journal library, journal images, omitted entries, and whether they have a primary key, using QSYS2.OBJECT_STATISTICS. needs_attention is true when a table is not journaled, or has no primary key and does not journal both images, which journal-based replication tools need. Requires IBM i 7.3 Technology Refresh 2 or later.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum rows to return. Capped by QUERY_MAX_LIMIT. | |
| filter | No | Filter pattern for table names. Use * as wildcard. Example: "ORDER*" matches tables starting with ORDER | |
| schema | No | Schema (library) to inspect. Uses the system's default schema if not provided. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| count | No | ||
| error | No | ||
| schema | No | ||
| success | Yes | ||
| truncated | No | ||
| needsAttention | No |