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

91 lines
5.8 KiB
HTML
Raw 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="Example: Remove journaled changes" />
<meta name="abstract" content="Even though the following examples show database physical files and data areas being processed separately, you can do them with one Remove Journaled Changes (RMVJRNCHG) command if you use the OBJ parameter for both object types." />
<meta name="description" content="Even though the following examples show database physical files and data areas being processed separately, you can do them with one Remove Journaled Changes (RMVJRNCHG) command if you use the OBJ parameter for both object types." />
<meta name="DC.Relation" scheme="URI" content="rzakiapyjrnchg.htm" />
<meta name="DC.Relation" scheme="URI" content="../cl/rmvjrnchg.htm" />
<meta name="DC.Relation" scheme="URI" content="rzakiqajrnchg.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="rzakirmvjrnchgexmpl" />
<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>Example: Remove journaled changes</title>
</head>
<body id="rzakirmvjrnchgexmpl"><a name="rzakirmvjrnchgexmpl"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Example: Remove journaled changes</h1>
<div><p>Even though the following examples show database physical files
and data areas being processed separately, you can do them with one Remove
Journaled Changes (RMVJRNCHG) command if you use the OBJ parameter for both
object types.</p>
<div class="p"><div class="note"><span class="notetitle">Note:</span> By using the code examples, you agree to the terms of the <a href="codedisclaimer.htm">Code
license and disclaimer information</a>.</div>
</div>
<div class="section"><h4 class="sectiontitle">Database physical file</h4><p>The following command removes
the changes in journal JRNA from the all the members of FILEA:</p>
<pre>RMVJRNCHG JRN(JRNLIB/JRNA) FILE(DSTPRODLIB/FILEA)
FROMENT(*LAST) TOENT(*FIRST)
RCVRNG(*CURRENT)</pre>
<p>The *CURRENT journal receiver is
the journal receiver that is attached to journal JRNA at the beginning of
the operation. The system starts removing the changes beginning with the latest
entry for that member in this receiver and continues to the earliest entry
for that member in this receiver.</p>
<p>The following command removes the
changes in journal JRNA from all the members of FILEA:</p>
<pre>RMVJRNCHG JRN(JRNLIB/JRNA) FILE(DSTPRODLIB/FILEA)
FROMENT(*LAST) TOENT(*FIRST)
RCVRNG(JRNLIB/RCVA10 JRNLIB/RCVA8)
OUTPUT(*OUTFILE) OUTFILE(MYFILE)</pre>
<p>The system starts removing the changes beginning with the last
entry (the latest entry) for that member in journal receiver RCVA10 and continues
to the first entry (the earliest entry) for that member on journal receiver
RCVA8.</p>
<p>Because OUTPUT(*OUTFILE) is specified, an output file with the
name MYFILE is created. The output file contains a record for each object
that the remove operation processes. See Use the apply and remove journaled
changes output file for an explanation of each field in the record. </p>
</div>
<div class="section"><h4 class="sectiontitle">Data area</h4><p>The following removes the changes in JRNA
from data area DATA1 from the last save entry to entry number 1003.</p>
<pre>RMVJRNCHG JRN(JRNLIB/JRNA) OBJ((LIBA/DATA1 *DTAARA))
RCVRNG(*CURRENT) FROMENT(*LASTSAVE) TOENT(1003)</pre>
<p>If
the last save operation used the save-while-active function, the system starts
by removing changes from the entry preceding the last E EW start of save entry.
If the last save operation was a normal save operation, the system starts
by removing changes from the entry that precedes the last E ES data area saved
entry. In the example, journaled changes are removed back to entry 1003.</p>
<div class="note"><span class="notetitle">Note:</span> Read
the Code example disclaimer for important legal information.</div>
</div>
</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="rzakiqajrnchg.htm" title="Use the apply and remove journaled changes output (QAJRNCHG) file to make a record of all the activity that occurs when you perform an apply or remove journaled changes operation.">Use the apply and remove journaled changes output file</a></div>
</div>
<div class="relref"><strong>Related reference</strong><br />
<div><a href="../cl/rmvjrnchg.htm">Remove Journaled Changes (RMVJRNCHG) command</a></div>
</div>
</div>
</body>
</html>