<?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="Set up job accounting" /> <meta name="abstract" content="To set up job accounting, use the character based interface." /> <meta name="description" content="To set up job accounting, use the character based interface." /> <meta name="DC.Relation" scheme="URI" content="rzaksmanagejobaccounting.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="rzaksjobactsettingup" /> <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>Set up job accounting</title> </head> <body id="rzaksjobactsettingup"><a name="rzaksjobactsettingup"><!-- --></a> <!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script> <h1 class="topictitle1">Set up job accounting</h1> <div><p>To set up job accounting, use the character based interface.</p> <ol><li><span>Create a journal receiver. The journal receiver can be created with any name and library you choose. It is recommended to give it a name with a naming convention such as ACGJRN1 so that additional receivers (such as ACGJRN2, ACGJRN3) can be created with the Change Journal <span class="cmdname">CHGJRN JRNRCV(*GEN) </span>command.</span><ol type="a"><li class="substepexpand"><span><strong>Command</strong>: Create Journal Receiver (<span class="cmdname">CRTJRNRCV</span>)</span> <pre>CRTJRNRCV JRNRCV(USERLIB/ACGJRN1)</pre> </li> </ol> </li> <li><span>Create the job accounting journal. The journal name must be QSYS/QACGJRN, and you need authority to add objects to the QSYS library.</span><ol type="a"><li class="substepexpand"><span><strong>Command</strong>: Create Journal (<span class="cmdname">CRTJRN</span>)</span> <pre>CRTJRN JRN(QSYS/QACGJRN) JRNRCV(USERLIB/ACGJRN1) AUT(*EXCLUDE)</pre> The journal receiver should be the same as the receiver created in step 1. The authority can be set to anything you choose, but *EXCLUDE is recommended since the data collected can be used to charge users for resource usage.</li> </ol> </li> <li><span>Change the journal accounting information (QACGLVL) system value. The system value can be set to journal job accounting information, or printer information, or both. *JOB produces job (JB) journal entries, while *PRINT produces direct print (DP) or spooled print (SP™) journal entries. A value of *NONE means no journaling is done for journal QACGJRN. Job accounting data will only be journaled for jobs that are started after the system value has been set to a value other than *NONE.</span><ol type="a"><li class="substepexpand"><span><strong>Command</strong>: Work with System Values (<span class="cmdname">WRKSYSVAL</span>) or Change System Value (<span class="cmdname">CHGSYSVAL</span>)</span> <pre>CHGSYSVAL SYSVAL(QACGLVL) VALUE('*JOB *PRINT')</pre> </li> </ol> </li> <li><span>Set the accounting code parameter <span class="parmname">ACGCDE</span> for each user profile. The accounting code can be set to any alphanumeric string up to 15 characters in length. If determining the current user is important to your analysis of a job accounting journal entry, it is recommended that you set the <span class="parmname">ACGCDE</span> parameter to the user profile's name.</span><ol type="a"><li class="substepexpand"><span><strong>Command</strong>: Change User Profile (<span class="cmdname">CHGUSRPRF</span>) or Create User Profile (<span class="cmdname">CRTUSRPRF</span>)</span> <pre>CHGUSRPRF USRPRF(USERID1) ACGCDE(USERID1)</pre> The accounting code can also be specified for a group of users by using the Change Job Description (<span class="cmdname">CHGJOBD</span>) or Create Job Description (<span class="cmdname">CRTJOBD</span>) commands. <p>The default accounting code for job descriptions is *USRPRF, which means it uses the accounting code from the job's user profile. If a value other than *USRPRF is specified in the job description, it will take precedence over the accounting code specified in the user profile</p> <p>A simple program can be written to change all the user profiles on a system so their accounting code matches their user profile name.</p> </li> </ol> </li> </ol> </div> <div> <div class="familylinks"> <div class="parentlink"><strong>Parent topic:</strong> <a href="rzaksmanagejobaccounting.htm" title="The job accounting function is not active by default. It requires a few initial steps to set it up. The following information describes how to set up job accounting and perform some of the most common tasks associated with job accounting.">Manage job accounting</a></div> </div> </div> </body> </html>