80 lines
5.0 KiB
HTML
80 lines
5.0 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="Examples: SBMRMTCMD command" />
|
||
|
<meta name="abstract" content="The examples display different uses for the SBMRMTCMD command." />
|
||
|
<meta name="description" content="The examples display different uses for the SBMRMTCMD command." />
|
||
|
<meta name="DC.Relation" scheme="URI" content="rbae5sbmcmd.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="rbae5sbmrmtcmdex" />
|
||
|
<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>Examples: SBMRMTCMD command</title>
|
||
|
</head>
|
||
|
<body id="rbae5sbmrmtcmdex"><a name="rbae5sbmrmtcmdex"><!-- --></a>
|
||
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
||
|
<h1 class="topictitle1">Examples: <span class="cmdname">SBMRMTCMD</span> command</h1>
|
||
|
<div><p>The examples display different uses for the <span class="cmdname">SBMRMTCMD</span> command.</p>
|
||
|
<div class="section"><h4 class="sectiontitle">Example: Submit a command to create another DDM file on the
|
||
|
remote server</h4><pre>SBMRMTCMD CMD('CRTDDMF FILE(SALES/MONTHLY)
|
||
|
RMTFILE(*NONSTD ''SALES/CAR(JULY)'')
|
||
|
RMTLOCNAME(DALLAS)') DDMFILE(CHICAGO)</pre>
|
||
|
<p>This submitted command
|
||
|
creates, on the target server identified by the information in the DDM file
|
||
|
named CHICAGO, another DDM file named MONTHLY; the new DDM file is stored
|
||
|
in a library named SALES on the server defined by DDMFILE CHICAGO. The new
|
||
|
DDM file on the CHICAGO server is used to access a file and <em>member</em> on
|
||
|
a different server named DALLAS. The accessed file is named CAR in the library
|
||
|
SALES and the member name in the file is JULY.</p>
|
||
|
<p>Notice that this <span class="cmdname">CRTDDMF</span> command
|
||
|
string contains <em>three</em> sets of single quotation marks: one set to enclose
|
||
|
the entire command being submitted (required by the CMD parameter on the <span class="cmdname">SBMRMTCMD</span> command),
|
||
|
and a double set to enclose the file and member named in the RMTFILE parameter.
|
||
|
Because the use of *NONSTD requires that nonstandard file names be enclosed
|
||
|
in a set of single quotation marks, this second set of single quotation marks
|
||
|
must be doubled because it is within the first set of single quotation marks.</p>
|
||
|
</div>
|
||
|
<div class="section"><h4 class="sectiontitle">Example: Submit a command to change text in a display file</h4><pre>SBMRMTCMD CMD('CHGDSPF FILE(LIBX/STANLEY)
|
||
|
TEXT(''Don''''t forget to pair apostrophes.'')')
|
||
|
DDMFILE(SMITH)</pre>
|
||
|
<p>This command changes the text
|
||
|
in the description of the display device file named STANLEY stored in library
|
||
|
LIBX. Because the submitted command requires an outside set of single quotation
|
||
|
marks (for the CMD parameter), each single quotation mark (') or quotation
|
||
|
marks ('') normally required in the TEXT parameter for <em>local</em> server
|
||
|
processing must be doubled again for <em>remote</em> server processing. The
|
||
|
preceding coding produces a single quotation mark in the text when it is displayed
|
||
|
or printed on the remote server.</p>
|
||
|
</div>
|
||
|
<div class="section"><h4 class="sectiontitle">Example: Submit a command to replace a library
|
||
|
list on the remote server</h4><pre>SBMRMTCMD CMD('CHGLIBL LIBL(QGPL QTEMP SALES EVANS)')
|
||
|
DDMFILE(EVANS)</pre>
|
||
|
<p>This command changes the user's portion of
|
||
|
the library list being used by the target job associated with the DDM file
|
||
|
named EVANS, which is being used by the source job in which this <span class="cmdname">SBMRMTCMD</span> command
|
||
|
is being submitted. In that source job, if there are other open DDM files
|
||
|
that specify the remote location information, this library list is used for
|
||
|
them also.</p>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div>
|
||
|
<div class="familylinks">
|
||
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="rbae5sbmcmd.htm" title="The Submit Remote Command (SBMRMTCMD) command submits a command using DDM to run on the target server.">SBMRMTCMD (Submit Remote Command) command</a></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</body>
|
||
|
</html>
|