ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzaki_5.4.0.1/rzakirtvjrnentry.htm

86 lines
5.9 KiB
HTML
Raw Permalink Normal View History

2024-04-02 14:02:31 +00:00
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-us" xml:lang="en-us">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="security" content="public" />
<meta name="Robots" content="index,follow" />
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
<meta name="DC.Type" content="concept" />
<meta name="DC.Title" content="Retrieve journal entries in a program" />
<meta name="abstract" content="Use the Retrieve Journal Entry (RTVJRNE) command or the Retrieve Journal Entries (QjoRetrieveJournalEntries) API in a program to retrieve a journal entry and place it in a variable in the program." />
<meta name="description" content="Use the Retrieve Journal Entry (RTVJRNE) command or the Retrieve Journal Entries (QjoRetrieveJournalEntries) API in a program to retrieve a journal entry and place it in a variable in the program." />
<meta name="DC.Relation" scheme="URI" content="rzakiwrkjrninfo.htm" />
<meta name="DC.Relation" scheme="URI" content="rzakifinder.htm" />
<meta name="DC.Relation" scheme="URI" content="../cl/rtvjrne.htm" />
<meta name="DC.Relation" scheme="URI" content="rzakipointer.htm" />
<meta name="DC.Relation" scheme="URI" content="rzakiqdbrplay.htm" />
<meta name="copyright" content="(C) Copyright IBM Corporation 2004, 2006" />
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 2004, 2006" />
<meta name="DC.Format" content="XHTML" />
<meta name="DC.Identifier" content="rzakirtvjrnentry" />
<meta name="DC.Language" content="en-us" />
<!-- All rights reserved. Licensed Materials Property of IBM -->
<!-- US Government Users Restricted Rights -->
<!-- Use, duplication or disclosure restricted by -->
<!-- GSA ADP Schedule Contract with IBM Corp. -->
<link rel="stylesheet" type="text/css" href="./ibmdita.css" />
<link rel="stylesheet" type="text/css" href="./ic.css" />
<title>Retrieve journal entries in a program</title>
</head>
<body id="rzakirtvjrnentry"><a name="rzakirtvjrnentry"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Retrieve journal entries in a program</h1>
<div><p>Use the Retrieve Journal Entry (RTVJRNE) command or the Retrieve
Journal Entries (QjoRetrieveJournalEntries) API in a program to retrieve a
journal entry and place it in a variable in the program.</p>
<p>You can also use the QjoRetrieveJournalEntries API to retrieve a journal
entry and return data which can include pointers. </p>
<div class="section" id="rzakirtvjrnentry__rtvjrnecommand"><a name="rzakirtvjrnentry__rtvjrnecommand"><!-- --></a><h4 class="sectiontitle">RTVJRNE command</h4><p>Use the RTVJRNE
command in a program to retrieve a journal entry and place it in variables
in the program. You can retrieve the following:</p>
<ul><li>Sequence number</li>
<li>Journal code</li>
<li>Entry type</li>
<li>Journal receiver name</li>
<li>Library name for the journal receiver</li>
<li>Journal entry-specific data</li>
</ul>
<p>You can use this method to create programs to automate recovery. For
layout of the fixed-length portion and variable-length portion of a journal
entry see the Journal entry information finder. </p>
<p>The
RTVJRNE command supports the same selection criteria (database files, data
areas, data queues, or integrated file system objects) as the Display Journal
(DSPJRN) command. You can specify which entries go to the exit program. For
the format of the record for the RTVJRNE command, see the Retrieve Journal
Entry (RTVJRNE) Command Description.</p>
</div>
<div class="section" id="rzakirtvjrnentry__qjoretrieve"><a name="rzakirtvjrnentry__qjoretrieve"><!-- --></a><h4 class="sectiontitle">The QjoRetrieveJournalEntries API</h4><p>The
QjoRetrieveJournalEntries API allows you to retrieve journal entries into
a receiver variable. The available journal entry information is similar to
what is provided by using the Display Journal (DSPJRN), Receive Journal Entry
(RCVJRNE), and Retrieve Journal Entry (RTVJRNE) commands, but it also provides
additional journal entry data that cannot be retrieved with these commands.
This additional data is accessed using pointers. Refer to Working with pointers
in journal entries for more information.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rzakiwrkjrninfo.htm" title="Provides ways that you can display, retrieve, and receive journal entries.">Work with journal entry information</a></div>
</div>
<div class="relconcepts"><strong>Related concepts</strong><br />
<div><a href="rzakipointer.htm" title="Under certain conditions, not all of the journal entry data will be immediately retrievable from a journal entry. Instead, part of the journal entry information will include pointers to additional journal entry-specific data.">Work with pointers in journal entries</a></div>
<div><a href="rzakiqdbrplay.htm" title="Use the Replay Database Operation (QDBRPLAY) API to replay a database operation from a single journal entry. You can only use the QDBRPLAY API to replay journal entries for database file objects. Also, the API does not run under commitment control even if the original journal entry was performed as part of a committable transaction.">Replay a database operation from a single journal entry</a></div>
</div>
<div class="relref"><strong>Related reference</strong><br />
<div><a href="../cl/rtvjrne.htm">Retrieve Journal Entry (RTVJRNE) command</a></div>
</div>
<div class="relinfo"><strong>Related information</strong><br />
<div><a href="rzakifinder.htm">Journal entry information finder</a></div>
</div>
</div>
</body>
</html>