99 lines
6.2 KiB
HTML
99 lines
6.2 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="MGET (Copy Multiple Files from a Remote System to the Local System)" />
|
|
<meta name="DC.Relation" scheme="URI" content="rzaiqclientsu.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="rzaiqget.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="rzaiqget.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="rzaiqcsubcs.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="rzaiqmput.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="rzaiqput.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="rzaiqctsdfl.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="rzaiqcslarf.htm" />
|
|
<meta name="copyright" content="(C) Copyright IBM Corporation 2004, 2006" />
|
|
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 2004, 2006" />
|
|
<meta name="DC.Format" content="XHTML" />
|
|
<meta name="DC.Identifier" content="rzaiqmget" />
|
|
<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>MGET (Copy Multiple Files from a Remote System to the Local System)</title>
|
|
</head>
|
|
<body id="rzaiqmget"><a name="rzaiqmget"><!-- --></a>
|
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
|
<h1 class="topictitle1">MGET (Copy Multiple Files from a Remote System to the Local System)</h1>
|
|
<div><div class="section"><h4 class="sectiontitle">FTP client subcommand</h4><p><strong>How MGET transfers files</strong>:</p>
|
|
<p>To
|
|
copy one or more remote files, use the MGET FTP client subcommand in this
|
|
format. A separate GET subcommand is executed for each remote file you want
|
|
transferred. The server creates the name of the corresponding local file automatically
|
|
as determined by the Default Naming rules.</p>
|
|
<p>The MGET FTP client subcommand
|
|
uses the following process to determine where to put files.</p>
|
|
<ul><li>The MGET subcommand always places files in the current library or directory.</li>
|
|
<li>If the user has issued the LCD subcommand, the server uses this library
|
|
or directory.</li>
|
|
<li>If the user has not issued the LCD subcommand, the server sets the current
|
|
directory as follows <ul><li>If the user's job has a current library set, this library is the current
|
|
directory for FTP.</li>
|
|
<li>If the user's job does not have a current library set, the server uses
|
|
QGPL as the current directory.</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
<div class="figborder"><div class="p"><p>MGet {<em>remotefile</em><br />
|
|
[remotefile...]}[(Replace]</p>
|
|
</div>
|
|
</div>
|
|
<dl><dt class="dlterm">remotefile</dt>
|
|
<dd>The file or files you want to retrieve from the remote system.</dd>
|
|
<dt class="dlterm">( Replace</dt>
|
|
<dd>Overwrites an existing file on your local system. If the file already
|
|
exists on your local system and you do not use the Replace option, the existing
|
|
file is not overwritten. The name of the local file where the remotefile is
|
|
copied is created automatically.</dd>
|
|
</dl>
|
|
<p>You can use an asterisk (<samp class="codeph">*</samp>) to copy all
|
|
members in a file to your current library or directory. For example, if the
|
|
remote system is an iSeries™,</p>
|
|
<ul><li><samp class="codeph">MGET MYLIB/MYFILE.</samp> <samp class="codeph">*</samp> copies all the
|
|
members of file MYFILE in library MYLIB on the remote system to your current
|
|
library on the local system.</li>
|
|
<li><samp class="codeph">MGET /QSYS.LIB/MYLIB.LIB/MYFILE.FILE/</samp> <samp class="codeph">*</samp> <samp class="codeph">.MBR</samp> would
|
|
be the NAMEFMT 1 version of this command.</li>
|
|
<li><samp class="codeph">MGET /QOPT/PICTURES/IMAGES/.</samp> <samp class="codeph">*</samp> copies
|
|
all the files of directory IMAGES from optical volume PICTURES to your current
|
|
library (or directory) on the local system.</li>
|
|
<li><samp class="codeph">MGET TESTFILE.A</samp> <samp class="codeph">*</samp> copies all members
|
|
that start with the letter A in file TESTFILE.</li>
|
|
<li><samp class="codeph">MGET /QDLS/QISSOS2/A</samp> <samp class="codeph">*</samp> copies all documents
|
|
that start with the letter A in folder QISSOS2.</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="rzaiqclientsu.htm" title="Use File Transfer Protocol (FTP) client subcommands to establish a connection with a remote FTP server, navigate libraries and directories, create and delete files, and transfer files.">File Transfer Protocol client subcommands</a></div>
|
|
</div>
|
|
<div class="relref"><strong>Related reference</strong><br />
|
|
<div><a href="rzaiqget.htm">GET (Copy a File from a Remote System to the Local System)</a></div>
|
|
<div><a href="rzaiqcsubcs.htm" title="The File Transfer Protocol (FTP) client subcommands described in this topic make use of syntax conventions:">File Transfer Protocol client syntax conventions</a></div>
|
|
<div><a href="rzaiqmput.htm">MPUT (Send Multiple File Members from the Local System to a Remote System)</a></div>
|
|
<div><a href="rzaiqput.htm">PUT (Copy a File Member from the Local System to a File on a Remote System)</a></div>
|
|
<div><a href="rzaiqctsdfl.htm" title="You can use default source and target file names for some subcommands; however, you must specify a file name for other subcommands.">File names for client-transfer subcommands</a></div>
|
|
<div><a href="rzaiqcslarf.htm" title="Use the localfile and remotefile parameters to transfer data.">Naming files for transfer</a></div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |