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

139 lines
8.3 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="task" />
<meta name="DC.Title" content="Example: Set up journaling" />
<meta name="abstract" content="The following are three examples of setting up journaling in the character-based interface. The first example sets up journaling with the both the journal and receiver in the system disk pool. The second and third examples set up journaling with the journal and journal receiver in separate basic disk pools." />
<meta name="description" content="The following are three examples of setting up journaling in the character-based interface. The first example sets up journaling with the both the journal and receiver in the system disk pool. The second and third examples set up journaling with the journal and journal receiver in separate basic disk pools." />
<meta name="DC.Relation" scheme="URI" content="rzakisetupjrngs.htm" />
<meta name="DC.Relation" scheme="URI" content="../cl/crtjrnrcv.htm" />
<meta name="DC.Relation" scheme="URI" content="../cl/crtjrn.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="rzakisetupjrnexmp" />
<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: Set up journaling</title>
</head>
<body id="rzakisetupjrnexmp"><a name="rzakisetupjrnexmp"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Example: Set up journaling</h1>
<div><p>The following are three examples of setting up journaling in the
character-based interface. The first example sets up journaling with the both
the journal and receiver in the system disk pool. The second and third examples
set up journaling with the journal and journal receiver in separate basic
disk pools.</p>
<div class="section"><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>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <img src="./delta.gif" alt="Start of change" /><a href="rzakisetupjrngs.htm" title="Provides instructions on how to set up journals and journal receivers.">Set up journaling</a><img src="./deltaend.gif" alt="End of change" /></div>
</div>
<div class="relref"><strong>Related reference</strong><br />
<div><a href="../cl/crtjrnrcv.htm">Create Journal Receiver (CRTJRNRCV) command</a></div>
<div><a href="../cl/crtjrn.htm">Create Journal (CRTJRN) command</a></div>
</div>
</div><div class="nested1" xml:lang="en-us" id="journalrecsysdiskpool"><a name="journalrecsysdiskpool"><!-- --></a><h2 class="topictitle2">Journal and receiver in system disk pool</h2>
<div><div class="section"><p>In this example, the library $DSTJRN is in the system disk pool
and has the following description:</p>
<ul><li>Type: PROD</li>
<li>Disk pool of library: 1</li>
<li>Create authority: *EXCLUDE</li>
</ul>
</div>
<ol><li class="stepexpand"><span>The $DSTJRN library already exists in the system disk pool.</span></li>
<li class="stepexpand"><span>The Create Journal Receiver (CRTJRNRCV) command creates journal
receiver RCVDST1 in the $DSTJRN library:</span> <pre>CRTJRNRCV JRNRCV($DSTJRN/RCVDST1) THRESHOLD(1500000)
TEXT('RECEIVER FOR $DSTJRN JOURNAL')</pre>
</li>
<li class="stepexpand"><span>The journal receiver is placed in the system disk pool with the
library because *LIBASP is the default value for the ASP parameter on the
CRTJRNRCV command.</span></li>
<li class="stepexpand"><span>Public authority for the journal receiver is *EXCLUDE because the <span class="uicontrol">Create
authority</span> value for the library is *EXCLUDE and the default for
the authority (AUT) parameter is *LIBCRTAUT.</span></li>
<li class="stepexpand"><span>The Create Journal (CRTJRN) command creates the associated local
journal: </span> <pre>CRTJRN JRN($DSTJRN/JRNLA) JRNRCV($DSTJRN/RCVDST1)
MNGRCV(*USER)</pre>
</li>
</ol>
<div class="section"><p><img src="./delta.gif" alt="Start of change" />The receiver size option is *MAXOPT2 and *RMVINTENT
since the RCVSIZOPT(*SYSDFT) is the default for the CRTJRN command.<img src="./deltaend.gif" alt="End of change" /></p>
</div>
</div>
</div>
<div class="nested1" xml:lang="en-us" id="journalpool"><a name="journalpool"><!-- --></a><h2 class="topictitle2">Journal receiver in a nonlibrary basic disk pool</h2>
<div><div class="section">In this example, the journal receiver is in a nonlibrary basic disk
pool and the journal is in the system disk pool.</div>
<ol><li class="stepexpand"><span>The CRTJRNRCV command creates journal receiver RCVDST2 in a nonlibrary
basic disk pool</span> <pre>CRTJRNRCV JRNRCV($DSTJRN/RCVDST2) THRESHOLD(1000000)
ASP(2) TEXT('RECEIVER FOR $DSTJRN JOURNAL')</pre>
</li>
<li class="stepexpand"><span>The CRTJRN command creates the local journal in the system disk
pool:</span> <pre>CRTJRN JRN($DSTJRN/JRNLB) JRNRCVR($DSTJRN/RCVDST2)
MSGQ($DSTJRN/JRNLBMSG)
MNGRCV(*USER)</pre>
</li>
<li class="stepexpand"><span>When the receiver RCVDST2 exceeds 1 024 000 000
bytes of storage, a message (CPF7099) is sent to the JRNLBMSG message queue
in the $DSTJRN library.</span></li>
<li class="stepexpand"><span>The objects to be journaled must also be in the system disk pool.</span></li>
</ol>
</div>
</div>
<div class="nested1" xml:lang="en-us" id="journaldiskpools"><a name="journaldiskpools"><!-- --></a><h2 class="topictitle2">Journal and journal receiver in basic disk pools</h2>
<div><div class="section"><p>In this example, the libraries ARLIBR and ARLIB are in basic library
disk pools and have the following description:</p>
<p><strong>ARLIBR</strong></p>
<ul><li>Type: PROD</li>
<li>Disk pool of library: 3</li>
<li>Create authority: *USE</li>
<li>Text description: A/R Receiver LIB</li>
</ul>
<p><strong>ARLIB</strong></p>
<ul><li>Type: PROD</li>
<li>Disk pool of library: 4</li>
<li>Create authority: *USE</li>
<li>Text description: A/R Receiver LIB</li>
</ul>
</div>
<ol><li class="stepexpand"><span>The CRTJRNRCV command creates journal receiver RCVDST3 in the library
basic disk pool</span> <pre>CRTJRNRCV JRNRCV(ARLIBR/RCVDST3) THRESHOLD(1500000)
TEXT('RECEIVER FOR ARJRN JOURNAL')</pre>
</li>
<li class="stepexpand"><span>Because public authority is not specified, the public authority
is set to *USE (the <span class="uicontrol">Create authority</span> value for the
ARLIBR library).</span></li>
<li class="stepexpand"><span>The CRTJRN command creates the local journal that is associated
with the RCVDST3 journal receiver:</span> <pre>CRTJRN JRN(ARLIB/ARJRN) JRNRCV(ARLIBR/RCVDST3)</pre>
<p>When
the RCVDST3 journal receiver exceeds 1 536 000 000 bytes of storage, the system
creates a new journal receiver named RCVDST4, attaches it to the journal,
and sends message CPF7020 (journal receiver detached) to the QSYSOPR message
queue (the default queue).</p>
</li>
<li class="stepexpand"><span>All objects journaled to the ARJRN journal must be in ASP 4 because
the journal is in ASP 4.</span></li>
<li class="stepexpand"><span>In this case, the database files and journal are in the same library.
The journal receivers are in a library that is saved and restored after the
journal library if a single command is used, because ARLIBR comes after ARLIB
in a normal sort sequence.</span></li>
</ol>
</div>
</div>
</body>
</html>