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

75 lines
5.1 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="reference" />
<meta name="DC.Title" content="DDM example 2: SBMRMTCMD command method" />
<meta name="abstract" content="Commands needed to accomplish the task are entered at the source server. The source server sends commands that are needed on the target iSeries server by using the Submit Remote Command (SBMRMTCMD) command between the servers." />
<meta name="description" content="Commands needed to accomplish the task are entered at the source server. The source server sends commands that are needed on the target iSeries server by using the Submit Remote Command (SBMRMTCMD) command between the servers." />
<meta name="DC.subject" content="command, Submit Remote Command (SBMRMTCMD), SBMRMTCMD (Submit Remote Command), command, CL, Submit Remote Command (SBMRMTCMD), remote command, submitting, SBMRMTCMD (Submit Remote Command), program transfer, SBMRMTCMD command" />
<meta name="keywords" content="command, Submit Remote Command (SBMRMTCMD), SBMRMTCMD (Submit Remote Command), command, CL, Submit Remote Command (SBMRMTCMD), remote command, submitting, SBMRMTCMD (Submit Remote Command), program transfer, SBMRMTCMD command" />
<meta name="DC.Relation" scheme="URI" content="rbae5tsk1.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="rbae5sbmmeth" />
<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 example 2: SBMRMTCMD command method</title>
</head>
<body id="rbae5sbmmeth"><a name="rbae5sbmmeth"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">DDM example 2: <span class="cmdname">SBMRMTCMD</span> command method</h1>
<div><p>Commands needed to accomplish the task are entered at the source
server. The source server sends commands that are needed on the target <span class="keyword">iSeries™ server</span> by using the Submit Remote
Command (SBMRMTCMD) command between the servers.</p>
<div class="section"><p>The following commands are issued on the source
server in Philadelphia to send the ORDERENT program to the target server in
Chicago: </p>
<pre>CRTSAVF FILE(TRANSFER)
SAVOBJ OBJ(ORDERENT) LIB(PGMLIB) SAVF(TRANSFER)
UPDHIST(*NO)
SNDNETF FILE(TRANSFER) TOUSRID(ANDERSON CHICAGO)
CRTDDMF FILE(CHICAGO) RMTFILE(xxxxx) RMTLOCNAME(CHIC)
SBMRMTCMD CMD('CRTSAVF FILE(RECEIVE)') DDMFILE(CHICAGO)
SBMRMTCMD CMD('RCVNETF FROMFILE(TRANSFER)
TOFILE(RECEIVE)') DDMFILE(CHICAGO)
SBMRMTCMD CMD('CRTLIB LIB(PGMLIB)') DDMFILE(CHICAGO)
SBMRMTCMD CMD('RSTOBJ OBJ(ORDERENT) SAVLIB(PGMLIB)
SAVF(RECEIVE)') DDMFILE(CHICAGO)
SBMRMTCMD CMD('CRTDDMF FILE(CUSTMAST.PGMLIB)
RMTFILE(*NONSTD ”PGMLIB/CUSTMAST”) DEVD(PHILLY)')
DDMFILE(CHICAGO)</pre>
</div>
<div class="section"><p>These commands create a save file named TRANSFER, which saves
the ORDERENT program and then sends it as a network file to the target server
in Chicago. There, the commands embedded in the <span class="cmdname">SBMRMTCMD</span> command
are used to create a save file (named RECEIVE) on the target server, receive
the TRANSFER file, and restore it as ORDERENT into the newly created PGMLIB
library. Lastly, a DDM file is created on the Chicago server which allows
the Chicago server wants to access the CUSTMAST file on the Philadelphia server.
The <span class="cmdname">Create DDM File (CRTDDMF)</span> command is in <span class="keyword">System/38™</span> syntax.</p>
</div>
<div class="section"><p>After either of these two methods is used to send the ORDERENT
program to, and to create the DDM file on, the Chicago server, the ORDERENT
program on that server can be used to access the CUSTMAST file on the Philadelphia
server.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rbae5tsk1.htm" title="In this task, the central server in the DDM network, located in Philadelphia, sends a program named ORDERENT to a remote System/38 in Chicago.">DDM example 2: Transfer a program to a target server</a></div>
</div>
</div>
</body>
</html>