108 lines
6.7 KiB
HTML
108 lines
6.7 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="Work with user jobs in a distributed relational database" />
|
||
|
<meta name="abstract" content="If you know the user profile (user name) being used by a job, you can use the Work with User Jobs (WRKUSRJOB) command to display or change job information. Enter the command without any parameters to get a list of the jobs in the server with your user profile." />
|
||
|
<meta name="description" content="If you know the user profile (user name) being used by a job, you can use the Work with User Jobs (WRKUSRJOB) command to display or change job information. Enter the command without any parameters to get a list of the jobs in the server with your user profile." />
|
||
|
<meta name="DC.subject" content="administration task, working with user jobs, database administration, working with, user jobs, command, WRKUSRJOB (Work with User Jobs), Work with User Jobs (WRKUSRJOB), command, CL, Work with User Jobs (WRKUSRJOB), user jobs, TCP/IP, working with server jobs" />
|
||
|
<meta name="keywords" content="administration task, working with user jobs, database administration, working with, user jobs, command, WRKUSRJOB (Work with User Jobs), Work with User Jobs (WRKUSRJOB), command, CL, Work with User Jobs (WRKUSRJOB), user jobs, TCP/IP, working with server jobs" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="rbal1rdbactv.htm" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="../cl/wrkusrjob.htm" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="rbal1appnotcomp.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="rbal1wrkusrj" />
|
||
|
<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>Work with user jobs in a distributed relational database</title>
|
||
|
</head>
|
||
|
<body id="rbal1wrkusrj"><a name="rbal1wrkusrj"><!-- --></a>
|
||
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
||
|
<h1 class="topictitle1">Work with user jobs in a distributed relational database</h1>
|
||
|
<div><p>If you know the user profile (user name) being used by a job, you
|
||
|
can use the <span class="cmdname">Work with User Jobs (WRKUSRJOB)</span> command to
|
||
|
display or change job information. Enter the command without any parameters
|
||
|
to get a list of the jobs in the server with your user profile.</p>
|
||
|
<div class="section"> <p> You can specify any user and the job status to shorten the list
|
||
|
of jobs by entering its name in the command like this: </p>
|
||
|
<pre>WRKUSRJOB USER(KCDBA)</pre>
|
||
|
<p>The
|
||
|
Work with User Jobs display appears with names and status information of user
|
||
|
jobs running in the server (*ACTIVE), on job queues (*JOBQ), or on an output
|
||
|
queue (*OUTQ). The following display shows the active and ended jobs for the
|
||
|
user named KCDBA: </p>
|
||
|
<pre class="screen">Work with User Jobs KC105
|
||
|
03/29/92 16:15:33
|
||
|
Type options, press Enter.
|
||
|
2=Change 3=Hold 4=End 5=Work with 6=Release 7=Display message
|
||
|
8=Work with spooled files 13=Disconnect
|
||
|
|
||
|
Opt Job User Type -----Status------ Function
|
||
|
__ KC000 KCDBA CMNEVK OUTQ
|
||
|
__ KC000 KCDBA CMNEVK OUTQ
|
||
|
__ KC000 KCDBA CMNEVK OUTQ
|
||
|
__ KC000 KCDBA CMNEVK OUTQ
|
||
|
__ KC000 KCDBA CMNEVK ACTIVE
|
||
|
__ KC0001 KCDBA CMNEVK ACTIVE * -PASSTHRU
|
||
|
__ KC0001 KCDBA INTER ACTIVE CMD-WRKUSRJOB
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
Bottom
|
||
|
Parameters or command
|
||
|
===>
|
||
|
F3=Exit F4=Prompt F5=Refresh F9=Retrieve F11=Display schedule data
|
||
|
F12=Cancel F21=Select assistance level</pre>
|
||
|
<p>This display lists all
|
||
|
the jobs in the server for the user, shows the status specified (*ALL in this
|
||
|
case), and shows the type of job. It also provides you with eight options
|
||
|
(2 through 8 and 13) to enter commands for a selected job. Option 5 presents
|
||
|
the Work with Job display described in the preceding paragraphs.</p>
|
||
|
<p>The <span class="cmdname">Work
|
||
|
with User Jobs (WRKUSRJOB)</span> command is useful when you want to look
|
||
|
at the status of the DDM TCP/IP server jobs if your server is using TCP/IP.
|
||
|
Run the following command: </p>
|
||
|
<pre> WRKUSRJOB QUSER *ACTIVE</pre>
|
||
|
<p>Page
|
||
|
down until you see the jobs starting with the characters <samp class="codeph">QRWT</samp>.
|
||
|
If the server is active, you should see one job named <samp class="codeph">QRWTLSTN</samp>,
|
||
|
and one or more named <samp class="codeph">QRWTSRVR</samp> (unless prestart DRDA<sup>®</sup> jobs are
|
||
|
not run on the server). The QRWTSRVR jobs are prestart jobs. If you do not
|
||
|
see the QRWTLSTN job, run the following command to start it: </p>
|
||
|
<pre> STRTCPSVR *DDM</pre>
|
||
|
<p>If
|
||
|
you see the QRWTLSTN job and not the QRWTSRVR jobs, and the use of DRDA prestart
|
||
|
jobs has not been disabled, run the following command to start the prestart
|
||
|
jobs:</p>
|
||
|
<pre> STRPJ subsystem QRWTSRVR</pre>
|
||
|
<p>Before V5R2,
|
||
|
the subsystem that QRWTSRVR normally ran in was QSYSWRK. After V5R1, QRWTSRVR
|
||
|
runs in QUSRWRK.</p>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div>
|
||
|
<div class="familylinks">
|
||
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="rbal1rdbactv.htm" title="You can rely on control language (CL) commands, all of which provide similar information, but in different ways, to give you a view of work on an iSeries server.">Monitor relational database activity</a></div>
|
||
|
</div>
|
||
|
<div class="relref"><strong>Related reference</strong><br />
|
||
|
<div><a href="../cl/wrkusrjob.htm">Work with User Jobs (WRKUSRJOB) command</a></div>
|
||
|
<div><a href="rbal1appnotcomp.htm" title="If the request takes longer than expected to complete, the first place to check is at the application requester (AR).">Application does not complete in the expected time</a></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</body>
|
||
|
</html>
|