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

86 lines
5.9 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="End or delete threads" />
<meta name="abstract" content="An initial thread, which is created when the job starts, can never be deleted or ended. However, sometimes it is necessary to end a secondary thread so that a job can continue to run. Be aware of the thread you intend to end because the job it runs within might not be able to complete without that thread's work." />
<meta name="description" content="An initial thread, which is created when the job starts, can never be deleted or ended. However, sometimes it is necessary to end a secondary thread so that a job can continue to run. Be aware of the thread you intend to end because the job it runs within might not be able to complete without that thread's work." />
<meta name="DC.Relation" scheme="URI" content="rzaksmanagethreads.htm" />
<meta name="DC.Relation" scheme="URI" content="rzaksthreadstructure.htm" />
<meta name="DC.Relation" scheme="URI" content="../rzahw/rzahwendco.htm" />
<meta name="DC.Relation" scheme="URI" content="../apis/users_g4.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="rzaksendthread" />
<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>End or delete threads</title>
</head>
<body id="rzaksendthread"><a name="rzaksendthread"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">End or delete threads</h1>
<div><p>An initial thread, which is created when the job starts, can never
be deleted or ended. However, sometimes it is necessary to end a secondary
thread so that a job can continue to run. Be aware of the thread you intend
to end because the job it runs within might not be able to complete without
that thread's work.</p>
<div class="section"><div class="important"><span class="importanttitle">Important:</span> Ending threads should not be a part of your
daily work management routine. Ending a thread is more serious than ending
a job because the work in other threads might or might not stop. When you
end a job, all the work stops. However, when you end a thread, only a portion
of the work stops. Other threads might or might not continue to run. If they
continue running without the thread that you end, they might produce undesirable
results.</div>
<p>To delete or end a secondary thread, you must have service
(*SERVICE) special authority or Thread Control authority.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rzaksmanagethreads.htm" title="There are many tasks that you can do when managing threads.">Manage threads</a></div>
</div>
<div class="relconcepts"><strong>Related concepts</strong><br />
<div><a href="rzaksthreadstructure.htm" title="The term thread is shorthand for &#34;thread of control&#34;. A thread is the path taken by a program while running, the steps performed, and the order in which the steps are performed. A thread runs code from its starting location in an ordered, predefined sequence for a given set of inputs.">Threads</a></div>
</div>
<div class="relinfo"><strong>Related information</strong><br />
<div><a href="../rzahw/rzahwendco.htm">Example: End a thread using Java</a></div>
<div><a href="../apis/users_g4.htm">Thread management APIs</a></div>
</div>
</div><div class="nested1" xml:lang="en-us" id="navendthread"><a name="navendthread"><!-- --></a><h2 class="topictitle2">iSeries Navigator</h2>
<div><div class="section"><p>To delete or end a thread, do the following:</p>
</div>
<ol><li><span>In iSeries™ Navigator,
expand <span class="menucascade"><span class="uicontrol">My Connections</span> &gt; <span class="uicontrol">server</span> &gt; <span class="uicontrol">Work Management</span> &gt; <span class="uicontrol">Active Jobs</span></span> or <span class="uicontrol">Server
Jobs</span>.</span></li>
<li><span>Right-click the job with which you want to work, and click <span class="uicontrol">Details</span>,
and then <span class="uicontrol">Threads</span>.</span></li>
<li><span>Right-click the thread with which you want to end, and click <span class="uicontrol">Delete/End</span>.</span></li>
</ol>
</div>
</div>
<div class="nested1" xml:lang="en-us" id="cbirzaksthreadrununderjob"><a name="cbirzaksthreadrununderjob"><!-- --></a><h2 class="topictitle2">Character-based interface</h2>
<div><div class="section"><strong>Command</strong>: Work With Job (<span class="cmdname">WRKJOB</span>) Option
20:<span class="uicontrol"> Work with threads, if active</span></div>
<div class="example"><strong>Example</strong>: The following example displays the Work With Threads
screen for the job Crtpfrdta. <blockquote><pre>WRKJOB JOB(Crtpfrdta) OPTION(*THREAD)</pre>
<p>At
the Work With Threads screen, select Option: 4=End.</p>
</blockquote>
</div>
</div>
</div>
</body>
</html>