ibm-information-center/dist/eclipse/plugins/i5OS.ic.ddm_5.4.0.1/rbae5jobcnvs.htm

130 lines
9.6 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="concept" />
<meta name="DC.Title" content="DDM-related jobs and DDM conversations" />
<meta name="abstract" content="This topic provides additional information about activation groups, source server jobs, target server jobs, and the DDM conversations used by those jobs." />
<meta name="description" content="This topic provides additional information about activation groups, source server jobs, target server jobs, and the DDM conversations used by those jobs." />
<meta name="DC.subject" content="DDM job, source DDM (SDDM), jobs, SDDM (source DDM), DDM source considerations, target DDM (TDDM), DDM target considerations, target DDM (TDDM), characteristics, DDM source considerations, accessing, multiple application programs, activation groups, single source program, multiple source program, DDM conversation, DDMCNV value, system, iSeries, restrictions" />
<meta name="keywords" content="DDM job, source DDM (SDDM), jobs, SDDM (source DDM), DDM source considerations, target DDM (TDDM), DDM target considerations, target DDM (TDDM), characteristics, DDM source considerations, accessing, multiple application programs, activation groups, single source program, multiple source program, DDM conversation, DDMCNV value, system, iSeries, restrictions" />
<meta name="DC.Relation" scheme="URI" content="rbae5advcncp.htm" />
<meta name="DC.Relation" scheme="URI" content="../books/sc415606.pdf" />
<meta name="DC.Relation" scheme="URI" content="rbae5cldsp.htm" />
<meta name="DC.Relation" scheme="URI" content="rbae5exampleacc.htm" />
<meta name="DC.Relation" scheme="URI" content="rbae5addcons.htm" />
<meta name="copyright" content="(C) Copyright IBM Corporation 1999, 2006" />
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 1999, 2006" />
<meta name="DC.Format" content="XHTML" />
<meta name="DC.Identifier" content="rbae5jobcnvs" />
<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>DDM-related jobs and DDM conversations</title>
</head>
<body id="rbae5jobcnvs"><a name="rbae5jobcnvs"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">DDM-related jobs and DDM conversations</h1>
<div><p>This topic provides additional information about activation groups,
source server jobs, target server jobs, and the DDM conversations used by
those jobs.</p>
<p>For remote file processing, at least two separate jobs are used, one running
on each server: a source job and a target job. (The source server job is the
one in which the user application is running.) Multiple application programs
can be running in different activation groups within a single source job.
Each activation group within a source job has a separate DDM conversation
and target job for the remote location information specified in the DDM files.
Multiple DDM files share a conversation when the following items are true:</p>
<ul><li>The files are accessed in the same activation group within a source job.</li>
<li>The files specify the same remote location combination.</li>
</ul>
<p>For each DDM conversation, there is one target job, which includes the
TDDM.</p>
<p>The SDDM runs within a source job or activation group on the source server.
It can handle multiple DDM conversations with one or more target servers at
the same time. For the same source job or activation group, one SDDM handles
all the remote file access requests. This is true regardless of how many target
servers or remote files are involved. No separate job for the SDDM exists
in the server.</p>
<p>If the source server DDM files involved all use the same remote location
information to identify the target server, one TDDM job is created for each
source server job that requests access to one or more files on the target
server.</p>
<p>The following figure shows five programs accessing six DDM files. The numbers
in the upper set of boxes representing DDM files correspond to the same numbers
in the lower set of boxes representing the associated remote files. These
DDM files are using four different remote location descriptions to access
six different remote files, all on the same target server. Seven DDM conversations
are needed to handle the processing. An explanation of the DDM conversations
follows:</p>
<ul><li>PGM1 and PGM2 run in different source jobs and are using DDM files (2
and 3) that contain the same remote location information. A separate conversation
is needed for each source job.</li>
<li>PGM3 in source job 3 uses the two DDM files (5 and 6) that both use the
same remote location information. They will share the same conversation and
target job (5B).</li>
<li>PGM4 and PGM5 run in different activation groups within source job 4.
They are using two DDM files (5 and 6) that both use the same remote location
information. A separate conversation is needed for each activation group.</li>
</ul>
<p>In the following figure, jobs 1, 2, and 3 in System A each have a SDDM.
Each activation group in job 4 has its own SDDM. Jobs 1B through 7B each have
their own TDDM. </p>
<div class="p">When the application program or the source job closes the DDM file on the
source server, the DDM conversation and its associated target job ends, unless
the following items are true: <ul><li>The value of the DDMCNV attribute of the <span class="cmdname">Change Job (CHGJOB)</span> command
for the source job is *KEEP (the server default).</li>
<li>Any locks established during the job by the <span class="cmdname">Allocate Object (ALCOBJ)</span> command
still exist.</li>
</ul>
</div>
<div class="fignone" id="rbae5jobcnvs__rbae5jobfig"><a name="rbae5jobcnvs__rbae5jobfig"><!-- --></a><span class="figcap">Figure 1. Relationships of DDM source
and target jobs</span><br /><img src="rsll118.gif" alt="This figure is described in the preceding text." /><br /></div>
<p>The <span class="cmdname">CHGJOB</span> and <span class="cmdname">ALCOBJ</span> commands are
described in topic Use CL and DDS with DDM. If DDMCNV(*KEEP) is specified,
the DDM conversation remains active and waits for another DDM request to be
started.</p>
<p>From a performance viewpoint, if the DDM conversation is likely to be used
again, *KEEP is the value that should be used. This saves the time and resources
used on the target server to start each TDDM and establish the conversation
and job.</p>
<p>The following figure shows the relationship between the SDDM and two TDDMs
on <em>different</em> target servers and the figure in Example: Access
files on multiple servers with DDM topic shows the relationship between the
SDDM and two TDDMs on <em>one</em> target server.</p>
<p>An <span class="keyword">iSeries™ server</span> can be a source
server and a target server at the same time, and two servers can be accessing
files located on each other. In addition, an <span class="keyword">iSeries</span> job
can be a source job and a target job. A DDM file can refer to a remote file
that is another DDM file.</p>
<div class="fignone" id="rbae5jobcnvs__rbae5srctgt3"><a name="rbae5jobcnvs__rbae5srctgt3"><!-- --></a><span class="figcap">Figure 2. Example: Access multiple local
and remote files</span>. <span class="figdesc">An <span class="keyword">iSeries server</span> with
communications links to a <span class="keyword">System/38™</span> and
to a <span class="keyword">System/36™</span>.</span><br /><img src="rsll107.gif" alt="An iSeries with communications links to a System/38 and to a System/36." /><br /></div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rbae5advcncp.htm" title="Most users of DDM will not need the information in the remainder of these topics; it is intended primarily for experienced programmers who need to know more about DDM.">Additional DDM concepts</a></div>
</div>
<div class="relconcepts"><strong>Related concepts</strong><br />
<div><a href="rbae5cldsp.htm" title="This topic contains DDM-related information about specific iSeries control language (CL) commands, data description specifications (DDS) considerations, DDS keywords, and DDM user profile authority.">Use CL and DDS with DDM</a></div>
</div>
<div class="relref"><strong>Related reference</strong><br />
<div><a href="rbae5exampleacc.htm" title="This topic contains a figure which shows the relationships among the source server, its DDM files, and two target servers.">Example: Access files on multiple servers with DDM</a></div>
<div><a href="rbae5addcons.htm" title="This topic describes additional considerations for the SBMRMTCMD command.">Additional considerations: SBMRMTCMD command</a></div>
</div>
<div class="relinfo"><strong>Related information</strong><br />
<div><a href="../books/sc415606.pdf " target="_blank">ILE Concepts</a></div>
</div>
</div>
</body>
</html>