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

117 lines
8.4 KiB
HTML
Raw Permalink 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="reference" />
<meta name="DC.Title" content="Batch file processing with DDM" />
<meta name="abstract" content="Consider these items when using batch file processing with DDM." />
<meta name="description" content="Consider these items when using batch file processing with DDM." />
<meta name="DC.subject" content="object, distribution, performance considerations, object distribution" />
<meta name="keywords" content="object, distribution, performance considerations, object distribution" />
<meta name="DC.Relation" scheme="URI" content="rbae5perfcon.htm" />
<meta name="DC.Relation" scheme="URI" content="../books/sc415406.pdf" />
<meta name="DC.Relation" scheme="URI" content="rbae5objdist.htm" />
<meta name="DC.Relation" scheme="URI" content="../books/sc415442.pdf" />
<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="rbae5batchproc" />
<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>Batch file processing with DDM</title>
</head>
<body id="rbae5batchproc"><a name="rbae5batchproc"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Batch file processing with DDM</h1>
<div><p>Consider these items when using batch file processing with DDM.</p>
<div class="section"><ul><li>When an application opens a local file for <em>sequential input only</em> or <em>output
add</em>, the server uses blocking techniques to achieve maximum throughput.
To ensure blocking is used for a remote file accessed by using DDM, do not
use random record processing operations in the program but specify OVRDBF
SEQONLY(*YES) against the DDM files opened by the program.</li>
<li>Use of read and read-next operations in the high-level language (HLL)
program to access the file maximizes the effect of the SEQONLY(*YES) specification.</li>
<li>The use of random processing operations, such as chain operations of ILE
RPG or start operations of ILE COBOL programming language, causes DDM to send
deblocked operations across the communications line even if the application
processes the file data sequentially. This results in significant differences
between local and remote file processing.</li>
<li>When simple physical file transfer is desired (all records transferred
and no application processing of the data), use of DDM by using the <span class="cmdname">Copy
File (CPYF)</span> command, or a user-written program using DDM with the <span class="cmdname">Override
Database File (OVRDBF)</span> command SEQONLY(*YES number-of-records) specified,
transfers the data more quickly than a user-written APPC program. The <span class="cmdname">Copy
File</span> command and the DDM SEQONLY(*YES) support require less calls
and returns between the program and APPC data management modules than does
a standard ILE RPG or ILE COBOL APPC program.</li>
<li>For ILE RPG or ILE COBOL sequential input-only applications, SEQONLY(*YES)
should be specified with no <em>number of records</em> to achieve best throughput.
For ILE RPG or ILE COBOL sequential output-only applications to keyed files,
a large <em>number-of-records</em> value should be used.</li>
<li>The <span class="cmdname">Send Network File (SNDNETF)</span> command can be considered
as an alternative to DDM or user-written APPC programs when transferring all
records within a file to a remote <span class="keyword">iSeries™ server</span>.
The <span class="cmdname">SNDNETF</span> command requires SNADS to be configured on
the source and target <span class="keyword">iSeries server</span>.
If one or more intermediate servers are between the source and target <span class="keyword">iSeries server</span>s, SNADS provides intermediate
node routing of the data when correctly configured.</li>
<li>Use of the <span class="cmdname">SNDNETF</span> command by using SNADS offers the
advantages of transmitting one copy of the data to multiple users on one or
more target servers through a multiple node network, and the time scheduled
transmission of that data by using the SNADS distribution queue parameter.
<p>However, in addition to requiring SNADS to use the <span class="cmdname">SNDNETF</span> command,
the target server user must also run the <span class="cmdname">Receive Network File (RCVNETF)</span> command
to make the file usable on the target server. Use of DDM would not require
this additional target server processing. </p>
<p>In general, the file transmission times by using SNADS (user program DDM
sequential file processing, the DDM <span class="cmdname">Copy File</span> command,
and a user-written APPC program between two <span class="keyword">iSeries server</span>s)
are within 10% of each other. However, the use of the <span class="cmdname">SNDNETF</span> and <span class="cmdname">RCVNETF</span> commands
to make a copy of the data usable on the target server does add total processing
time over the other methods of file transfer.</p>
</li>
<li>Because the <span class="cmdname">SNDNETF</span> command can transmit objects within
a save file, the amount of data that is actually sent by using this technique
might be less than that sent using the other techniques. If the database file
data sent contains a significant number of duplicate character strings, use
of the <span class="cmdname">Save Object (SAVOBJ)</span> command parameter DTACPR(*YES)
(data compression) can significantly reduce the amount of data that is actually
sent by using a SNADS distribution. However, if there are few
duplicate character strings, there is little change in the amount of data
sent.</li>
<li>The <span class="keyword">iSeries</span> file transfer
subroutines might also be used to transfer an entire file between <span class="keyword">iSeries server</span>s and an <span class="keyword">iSeries server</span> and
a <span class="keyword">System/36™</span>. These subroutines
might be called from high-level language programs, and in some cases throughput
is achieved similar to that by using DDM.</li>
</ul>
<p>See the <em>SNA Distribution Services</em> manual on the <a href="http://publib.boulder.ibm.com/iseries/v5r1/ic2924/rzaqhindex.htm">V5R1
Supplemental Manuals</a><img src="www.gif" alt="Link outside information center" /> Web site.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rbae5perfcon.htm" title="These topics provide information to help you improve performance when using DDM and also provide some information about when to use something other than DDM to accomplish some functions.">Performance considerations for DDM</a></div>
</div>
<div class="relconcepts"><strong>Related concepts</strong><br />
<div><a href="../books/sc415406.pdf" target="_blank">Communications Management PDF</a></div>
</div>
<div class="relref"><strong>Related reference</strong><br />
<div><a href="rbae5objdist.htm" title="Although DDM file names can be specified on the Send Network File (SNDNETF) and Receive Network File (RCVNETF) commands, these commands should be run, whenever possible, on the server where the data actually exists. Therefore, if both servers are iSeries servers and both are part of a SNADS network, object distribution can be used instead of DDM to transfer the data between them.">Use of object distribution</a></div>
</div>
<div class="relinfo"><strong>Related information</strong><br />
<div><a href="../books/sc415442.pdf " target="_blank">ICF Programming PDF</a></div>
</div>
</div>
</body>
</html>