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

74 lines
4.7 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="Journaled changes with trigger programs" />
<meta name="abstract" content="The system does not call trigger programs when it is applying or removing journal entries." />
<meta name="description" content="The system does not call trigger programs when it is applying or removing journal entries." />
<meta name="DC.Relation" scheme="URI" content="rzakiapyjrnchg.htm" />
<meta name="DC.Relation" scheme="URI" content="../rzahf/rzahftrigcontable.htm" />
<meta name="DC.Relation" scheme="URI" content="../apis/QJOSJRNE.htm" />
<meta name="DC.Relation" scheme="URI" content="rzakisndjrne.htm" />
<meta name="DC.Relation" scheme="URI" content="../apis/QJORJRNE.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="rzakiapywthtrig" />
<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>Journaled changes with trigger programs</title>
</head>
<body id="rzakiapywthtrig"><a name="rzakiapywthtrig"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Journaled changes with trigger programs</h1>
<div><p>The system does not call trigger programs when it is applying or
removing journal entries.</p>
<p>If an event occurs that would normally cause a trigger program to run,
it is up to you to ensure that the processing performed by the trigger program
is recovered correctly.</p>
<p>Normal recovery processing will work correctly if all of the following
are true:</p>
<ul><li>The trigger program only performs processing on object types which can
be journaled and applied.</li>
<li>The processed object types are journaled.</li>
<li>Journaled changes are applied to or are removed from all the objects that
are affected by the trigger program.</li>
</ul>
<p>If additional work is performed by the trigger program or objects other
than object types which can be journaled and applied are updated, you must
use user-written programs to recover the work performed by the trigger program.</p>
<p>If you use trigger programs to perform these actions, consider using the
Send Journal Entry (QJOSJRNE) API to send journal entries when trigger programs
are called. See Send your own journal entries. To help with recovery, you
can develop a program to retrieve these entries and perform the same operations.</p>
<p>The output format for journal entries (except the *TYPE1, *TYPE2, and *TYPE3
formats) and the QjoRetrieveJournalEntries API interface include information
about whether a journal entry was created because of actions that were performed
when a trigger program was called.</p>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rzakiapyjrnchg.htm" title="One of the primary advantages of journaling is its ability to return a journaled object to its current state since the last save.">Recover journaled objects</a></div>
</div>
<div class="relconcepts"><strong>Related concepts</strong><br />
<div><a href="rzakisndjrne.htm" title="Use the Send Journal Entry (SNDJRNE) command or the Send Journal Entry (QJOSJRNE) API to add your own entries to a journal. The system places these entries in the journal's attached journal receiver along with the system-created journal entries.">Send your own journal entries</a></div>
</div>
<div class="relref"><strong>Related reference</strong><br />
<div><a href="../rzahf/rzahftrigcontable.htm">Work with triggers and constraints</a></div>
<div><a href="../apis/QJOSJRNE.htm">Send Journal Entry (QJOSJRNE) API</a></div>
<div><a href="../apis/QJORJRNE.htm">Retrieve Journal Entries (QjoRetrieveJournalEntries) API</a></div>
</div>
</div>
</body>
</html>