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

69 lines
4.8 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="Example: Access DDM remote members (iSeries server only)" />
<meta name="abstract" content="These examples show how access to a DDM file becomes an indirect reference (by using DDM) to a member of a file on a remote iSeries server. These examples are iSeries server-to-iSeries server examples." />
<meta name="description" content="These examples show how access to a DDM file becomes an indirect reference (by using DDM) to a member of a file on a remote iSeries server. These examples are iSeries server-to-iSeries server examples." />
<meta name="DC.subject" content="member access, example" />
<meta name="keywords" content="member access, example" />
<meta name="DC.Relation" scheme="URI" content="rbae5mbraccess.htm" />
<meta name="DC.Relation" scheme="URI" content="rbae5ovrdbf.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="rbae5expmbrs" />
<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>Example: Access DDM remote members (iSeries server only)</title>
</head>
<body id="rbae5expmbrs"><a name="rbae5expmbrs"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Example: Access DDM remote members (<span class="keyword">iSeries server</span> only)</h1>
<div><p>These examples show how access to a DDM file becomes an indirect
reference (by using DDM) to a member of a file on a remote <span class="keyword">iSeries™ server</span>.
These examples are <span class="keyword">iSeries server</span>-to-<span class="keyword">iSeries server</span> examples.</p>
<div class="section"><pre>CRTDDMF FILE(DDMLIB/RMTCAR) RMTFILE(SALES/CAR)
RMTLOCNAME(CHICAGO)
OVRDBF FILE(FILE1) TOFILE(DDMLIB/RMTCAR) MBR(TEST1)
OVRDBF FILE(FILE2) TOFILE(DDMLIB/RMTCAR)</pre>
</div>
<div class="section"><p>This example shows the creation of the same DDM file as in the
previous examples. Then, <span class="cmdname">OVRDBF</span> commands are used to override
two local files named FILE1 and FILE2 with the local DDM file RMTCAR. When
an application program attempts to open the files, the DDM file DDMLIB/RMTCAR
is opened twice instead. (FILE1 and FILE2 are not opened.)</p>
</div>
<div class="section"><div class="p">After communications are established with the correct
target server, the target server's TDDM opens the remote file SALES/CAR twice
(two recursions) and opens two different (in this case) members in that file:
member TEST1 and member *FIRST (the first member). This example requires
only one DDM conversation and one target job because both open operations
use the same DDM file and, therefore, the same location. <pre>CLRPFM FILE(DDMLIB/RMTCAR) MBR(FRED)</pre>
</div>
</div>
<div class="section"><p>This command clears, by using the DDM file named DDMLIB/RMTCAR,
member FRED of the file SALES/CAR on the target server.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rbae5mbraccess.htm" title="Members are supported for database I/O operations only if the target server is an iSeries server or a System/38. Members are not supported if the target server is neither an iSeries server nor a System/38.">Access members with DDM</a></div>
</div>
<div class="relref"><strong>Related reference</strong><br />
<div><a href="rbae5ovrdbf.htm" title="The Override with Database File (OVRDBF) command can be used with DDM to override (replace) a local database file named in the program with a DDM file; the DDM file causes the associated remote file to be used by the program instead of the local database file.">OVRDBF (Override with Database File) command</a></div>
</div>
</div>
</body>
</html>