ibm-information-center/dist/eclipse/plugins/i5OS.ic.rbam6_5.4.0.1/debugbatchns.htm

72 lines
4.5 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="Debug batch jobs not started from job queues" />
<meta name="abstract" content="You can sometimes debug batch jobs that are started on the system but which are not submitted to a job queue." />
<meta name="description" content="You can sometimes debug batch jobs that are started on the system but which are not submitted to a job queue." />
<meta name="DC.subject" content="debugging, batch job not started from job queue, batch job, debugging job not started from job queue, job queue, debugging batch job not started from" />
<meta name="keywords" content="debugging, batch job not started from job queue, batch job, debugging job not started from job queue, job queue, debugging batch job not started from" />
<meta name="DC.Relation" scheme="URI" content="usejobdg.htm" />
<meta name="DC.Relation" scheme="URI" content="../cl/addbkp.htm" />
<meta name="DC.Relation" scheme="URI" content="../cl/addtrc.htm" />
<meta name="DC.Relation" scheme="URI" content="../clfinder/finder.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="debugbatchns" />
<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>Debug batch jobs not started from job queues</title>
</head>
<body id="debugbatchns"><a name="debugbatchns"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Debug batch jobs not started from job queues</h1>
<div><p>You can sometimes debug batch jobs that are started on the system
but which are not submitted to a job queue. </p>
<div class="section"> <p> These jobs cannot be stopped before they start running but they
can usually be debugged. To debug jobs not started from a job queue, do the
following:</p>
<ol><li>Rename the program that is called when the job starts. For example, if
the job runs program CUST310, you can rename this program to CUST310DBG.</li>
<li>Create a small CL program with the same name as the original program (before
the program was renamed). In the small CL program, use the <span class="cmdname">Delay
Job (DLYJOB)</span> command to delay for one minute and then use the CALL
command to call the renamed program.</li>
<li>Allow the batch job to start to force the CL program to be delayed for
one minute.</li>
<li>Use the <span class="cmdname">Work with Active Jobs (WRKACTJOB)</span> command to
find the batch job that is running. When the display appears, enter option
5 next to the job to obtain the qualified job name.</li>
<li>Enter the <span class="cmdname">Start Service Job (STRSRVJOB)</span> command as
follows: <pre>STRSRVJOB JOB(qualified-job-name)</pre>
</li>
<li>Enter STRDBG and any other debug commands, such as the <span class="cmdname">Add Breakpoint
(ADDBKP)</span> or <span class="cmdname">Add Trace (ADDTRC)</span> command. Proceed
with debugging as usual.</li>
</ol>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="usejobdg.htm" title="You may want to use a separate job to debug programs running in another job.">Use a job to debug another job</a></div>
</div>
<div class="relinfo"><strong>Related information</strong><br />
<div><a href="../cl/addbkp.htm">Add Breakpoint (ADDBKP) command</a></div>
<div><a href="../cl/addtrc.htm">Add Trace (ADDTRC) command</a></div>
<div><a href="../clfinder/finder.htm">CL command finder</a></div>
</div>
</div>
</body>
</html>