ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzaks_5.4.0.1/rzaksjbactngdispdata.htm

67 lines
4.2 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="task" />
<meta name="DC.Title" content="Display the data collected" />
<meta name="abstract" content="After collecting data in the job accounting journal, you need to write the journal entries to a file and display them." />
<meta name="description" content="After collecting data in the job accounting journal, you need to write the journal entries to a file and display them." />
<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="rzaksjbactngdispdata" />
<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>Display the data collected</title>
</head>
<body id="rzaksjbactngdispdata"><a name="rzaksjbactngdispdata"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Display the data collected</h1>
<div><p>After collecting data in the job accounting journal, you need to
write the journal entries to a file and display them.</p>
<div class="p">To do this, follow these steps:</div>
<div class="section"><div class="note"><span class="notetitle">Note:</span> In the following example, the job accounting journal name is
QACGJRN.</div>
</div>
<ol><li><span>Create a copy of the system supplied model outfile for the accounting
journal. QAJBACG4 is the model outfile for the *TYPE4 outfile format.</span><ol type="a"><li class="substepexpand"><span><strong>Command</strong>: Create Duplicate Object (<span class="cmdname">CRTDUPOBJ</span>)</span> <pre>CRTDUPOBJ OBJ(QAJBACG4) FROMLIB(QSYS) OBJTYPE(*FILE) TOLIB(QTEMP)
NEWOBJ(MYJBACG4)</pre>
</li>
</ol>
</li>
<li><span>Dump the journal entries to the outfile that you just created.
In the following example only the 'JB' or job type journal entries are being
dumped.</span><ol type="a"><li class="substepexpand"><span><strong>Command</strong>: Display Journal (<span class="cmdname">DSPJRN</span>)</span> <pre>DSPJRN JRN(QACGJRN) ENTTYP(JB) OUTPUT(*OUTFILE) OUTFILFMT(*TYPE4)
OUTFILE(QTEMP/MYJBACG4)</pre>
</li>
</ol>
</li>
<li><span>Start an SQL session. Then use the SELECT command from within the
SQL session to choose the fields you want to display. </span><ol type="a"><li class="substepexpand"><span><strong>Command</strong>: Start Structured Query Language (<span class="cmdname">STRSQL</span>)</span> <pre>STRSQL
SELECT JAJOB, JAUSER, JAUSPF, JACDE, JACPU FROM QTEMP/MYJBACG4</pre>
</li>
</ol>
</li>
</ol>
<div class="section">You can display a list of field names interactively or to a file by
creating and running a query using the Work with Queries (<span class="cmdname">WRKQRY</span>)
command.</div>
</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>