ibm-information-center/dist/eclipse/plugins/i5OS.ic.ddp_5.4.0.1/rbal1jobact.htm

115 lines
8.3 KiB
HTML

<?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="reference" />
<meta name="DC.Title" content="Job accounting in a distributed relational database" />
<meta name="abstract" content="The job accounting function on the iSeries server gathers data so you can determine who is using the server and what server resources they are using. Typical job accounting provides details on the jobs running on a server and resources used, such as use of the processing unit, printer, display stations, and database and communications functions." />
<meta name="description" content="The job accounting function on the iSeries server gathers data so you can determine who is using the server and what server resources they are using. Typical job accounting provides details on the jobs running on a server and resources used, such as use of the processing unit, printer, display stations, and database and communications functions." />
<meta name="DC.subject" content="administration task, job accounting, database administration, job, accounting" />
<meta name="keywords" content="administration task, job accounting, database administration, job, accounting" />
<meta name="DC.Relation" scheme="URI" content="rbal1admin.htm" />
<meta name="DC.Relation" scheme="URI" content="rbal1accountingfor.htm" />
<meta name="DC.Relation" scheme="URI" content="../cl/chgjobd.htm" />
<meta name="DC.Relation" scheme="URI" content="../cl/chgsysval.htm" />
<meta name="DC.Relation" scheme="URI" content="../cl/chgusrprf.htm" />
<meta name="DC.Relation" scheme="URI" content="../cl/crtjobd.htm" />
<meta name="DC.Relation" scheme="URI" content="../cl/crtjrnrcv.htm" />
<meta name="DC.Relation" scheme="URI" content="../cl/crtjrn.htm" />
<meta name="DC.Relation" scheme="URI" content="../cl/crtusrprf.htm" />
<meta name="DC.Relation" scheme="URI" content="../cl/dspjrn.htm" />
<meta name="DC.Relation" scheme="URI" content="../rzaks/rzaksdailyworkmanage.htm" />
<meta name="DC.Relation" scheme="URI" content="../cl/wrksysval.htm" />
<meta name="DC.Relation" scheme="URI" content="rbal1mtserv.htm" />
<meta name="DC.Relation" scheme="URI" content="../rzaks/rzaksdailyworkmanage.htm" />
<meta name="copyright" content="(C) Copyright IBM Corporation 1998, 2006" />
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 1998, 2006" />
<meta name="DC.Format" content="XHTML" />
<meta name="DC.Identifier" content="rbal1jobact" />
<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>Job accounting in a distributed relational database</title>
</head>
<body id="rbal1jobact"><a name="rbal1jobact"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Job accounting in a distributed relational database</h1>
<div><p>The job accounting function on the <span class="keyword">iSeries™ server</span> gathers
data so you can determine who is using the server and what server resources
they are using. Typical job accounting provides details on the jobs running
on a server and resources used, such as use of the processing unit, printer,
display stations, and database and communications functions.</p>
<div class="section"><p>Job accounting is optional and must be set up on the server. To
set up resource accounting on the server you must: </p>
</div>
<div class="section"> <ol><li>Create a journal receiver by using the <span class="cmdname">Create Journal Receiver
(CRTJRNRCV)</span> command.</li>
<li>Create the journal named QSYS/QACGJRN by using the <span class="cmdname">Create Journal
(CRTJRN)</span> command. You must use the name QSYS/QACGJRN and you must
have authority to add items to QSYS to create this journal. Specify the names
of the journal receiver you created in the previous step on this command.</li>
<li>Change the accounting level server value QACGLVL using the <span class="cmdname">Work
with System Values (WRKSYSVAL)</span> or <span class="cmdname">Change System Value (CHGSYSVAL)</span> commands.
<p>The VALUE parameter on the <span class="cmdname">Change System Value (CHGSYSVAL)</span> command
determines when job accounting journal entries are produced. A value of *NONE
means the server does not produce any entries in the job accounting journal.
A value of *JOB means the server produces a job (JB) journal entry. A value
of *PRINT produces a direct print (DP) or spooled print (SP) journal entry
for each file printed.</p>
</li>
</ol>
</div>
<div class="section"><p>When a job is started, a job description is assigned to the job.
The job description object contains a value for the accounting code (ACGCDE)
parameter, which can be an accounting code or the default value *USRPRF. If
*USRPRF is specified, the accounting code in the job's user profile is used.</p>
</div>
<div class="section"><p>You can add accounting codes to user profiles using the accounting
code parameter ACGCDE on the <span class="cmdname">Create User Profile (CRTUSRPRF)</span> command
or the <span class="cmdname">Change User Profile (CHGUSRPRF)</span> command. You can
change accounting codes for specific job descriptions by specifying the desired
accounting code for the ACGCDE parameter on the <span class="cmdname">Create Job Description
(CRTJOBD)</span> command or the <span class="cmdname">Change Job Description (CHGJOBD)</span> command.</p>
</div>
<div class="section"><p>When a job accounting journal is set up, job accounting entries
are placed in the journal receiver starting with the next job that enters
the server after the <span class="cmdname">Change System Value (CHGSYSVAL)</span> command
takes effect.</p>
</div>
<div class="section"><p>You can use the OUTFILE parameter on the <span class="cmdname">Display Journal
(DSPJRN)</span> command to write the accounting entries to a database file
that you can process.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rbal1admin.htm" title="As an administrator for a distributed relational database, you are responsible for work being done on several servers.">Administration</a></div>
</div>
<div class="relconcepts"><strong>Related concepts</strong><br />
<div><a href="../rzaks/rzaksdailyworkmanage.htm">Manage work</a></div>
<div><a href="rbal1mtserv.htm" title="This topic collection describes how to manage the DRDA/DDM server jobs that communicate using sockets over TCP. It describes the subsystem in which the server runs, the objects that affect the server and how to manage those resources.">Manage the TCP/IP server</a></div>
</div>
<div class="relref"><strong>Related reference</strong><br />
<div><a href="rbal1accountingfor.htm" title="You need to be able to account and charge for the use of distributed data.">Account for a distributed relational database</a></div>
<div><a href="../cl/chgjobd.htm">Change Job Description (CHGJOBD) command</a></div>
<div><a href="../cl/chgsysval.htm">Change System Value (CHGSYSVAL) command</a></div>
<div><a href="../cl/chgusrprf.htm">Change User Profile (CHGUSRPRF) command</a></div>
<div><a href="../cl/crtjobd.htm">Create Job Description (CRTJOBD) command</a></div>
<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><a href="../cl/crtusrprf.htm">Create User Profile (CRTUSRPRF) command</a></div>
<div><a href="../cl/dspjrn.htm">Display Journal (DSPJRN) command</a></div>
<div><a href="../cl/wrksysval.htm">Work with System Value (WRKSYSVAL) command</a></div>
</div>
</div>
</body>
</html>