ibm-information-center/dist/eclipse/plugins/i5OS.ic.cl_5.4.0.1/rst.htm

1029 lines
40 KiB
HTML

<!doctype html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head><META http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Restore Object (RST)</title>
<link rel="stylesheet" type="text/css" href="../rzahg/ic.css">
</head>
<body bgcolor="white">
<script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<a name="RST.Top_Of_Page"></a>
<h2>Restore Object (RST)</h2>
<table width="100%">
<tr>
<td valign="top" align="left"><b>Where allowed to run: </b>All environments (*ALL)<br>
<b>Threadsafe: </b>No
</td>
<td valign="top" align="right">
<a href="#RST.PARAMETERS.TABLE">Parameters</a><br>
<a href="#RST.COMMAND.EXAMPLES">Examples</a><br>
<a href="#RST.ERROR.MESSAGES">Error messages</a></td>
</tr>
</table>
<div> <a name="RST"></a>
<p>The Restore (RST) command restores a copy of one or more objects that can be used in the integrated file system.
</p>
<p>For more information about integrated file system commands, see the Integrated file system information in the iSeries Information Center at http://www.ibm.com/eserver/iseries/infocenter.
</p>
<p><b>Restrictions:</b>
</p>
<ul>
<li>This command is shipped with no public authority (*EXCLUDE).
</li>
<li>For detailed restrictions on using this command to restore objects by using name patterns in the root directory, to restore objects in libraries, or to restore document library objects, see the Backup and Recovery book, SC41-5304.
</li>
</ul>
</div>
<table width="100%">
<tr><td align="right"><a href="#RST.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div>
<h3><a name="RST.PARAMETERS.TABLE">Parameters</a></h3>
<table border="1" cellpadding="4" cellspacing="0">
<!-- col1="10" col2="15" col3="30" col4="10" -->
<tr>
<th bgcolor="aqua" valign="bottom" align="left">Keyword</th>
<th bgcolor="aqua" valign="bottom" align="left">Description</th>
<th bgcolor="aqua" valign="bottom" align="left">Choices</th>
<th bgcolor="aqua" valign="bottom" align="left">Notes</th>
</tr>
<tr>
<td valign="top"><a href="#RST.DEV"><b>DEV</b></a></td>
<td valign="top">Device</td>
<td valign="top">Values (up to 4 repetitions): <i>Path name</i></td>
<td valign="top">Required, Positional 1</td>
</tr>
<tr>
<td valign="top" rowspan="4"><a href="#RST.OBJ"><b>OBJ</b></a></td>
<td valign="top">Objects</td>
<td valign="top">Values (up to 300 repetitions): <i>Element list</i></td>
<td valign="top" rowspan="4">Optional, Positional 2</td>
</tr>
<tr>
<td valign="top">Element 1: Name</td>
<td valign="top">
<i>Path name</i>, <b><u>*</u></b></td>
</tr>
<tr>
<td valign="top">Element 2: Include or omit</td>
<td valign="top">
<b><u>*INCLUDE</u></b>, *OMIT</td>
</tr>
<tr>
<td valign="top">Element 3: New object name</td>
<td valign="top">
<i>Path name</i>, <b><u>*SAME</u></b></td>
</tr>
<tr>
<td valign="top" rowspan="3"><a href="#RST.PATTERN"><b>PATTERN</b></a></td>
<td valign="top">Name pattern</td>
<td valign="top">Values (up to 300 repetitions): <i>Element list</i></td>
<td valign="top" rowspan="3">Optional</td>
</tr>
<tr>
<td valign="top">Element 1: Pattern</td>
<td valign="top">
<i>Character value</i>, <b><u>*</u></b></td>
</tr>
<tr>
<td valign="top">Element 2: Include or omit</td>
<td valign="top">
<b><u>*INCLUDE</u></b>, *OMIT</td>
</tr>
<tr>
<td valign="top"><a href="#RST.SUBTREE"><b>SUBTREE</b></a></td>
<td valign="top">Directory subtree</td>
<td valign="top"><b><u>*ALL</u></b>, *DIR, *NONE, *OBJ, *STG</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#RST.OUTPUT"><b>OUTPUT</b></a></td>
<td valign="top">Output</td>
<td valign="top"><i>Path name</i>, <b><u>*NONE</u></b>, *PRINT</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#RST.CRTPRNDIR"><b>CRTPRNDIR</b></a></td>
<td valign="top">Create parent directories</td>
<td valign="top"><b><u>*NO</u></b>, *YES</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#RST.PRNDIROWN"><b>PRNDIROWN</b></a></td>
<td valign="top">Parent directory owner</td>
<td valign="top"><i>Simple name</i>, <b><u>*PARENT</u></b></td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#RST.VOL"><b>VOL</b></a></td>
<td valign="top">Volume identifier</td>
<td valign="top">Single values: <b><u>*MOUNTED</u></b><br>Other values (up to 75 repetitions): <i>Character value</i></td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#RST.LABEL"><b>LABEL</b></a></td>
<td valign="top">Label</td>
<td valign="top"><i>Character value</i>, <b><u>*SEARCH</u></b></td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#RST.SEQNBR"><b>SEQNBR</b></a></td>
<td valign="top">Sequence number</td>
<td valign="top">1-16777215, <b><u>*SEARCH</u></b></td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#RST.ENDOPT"><b>ENDOPT</b></a></td>
<td valign="top">End of media option</td>
<td valign="top"><b><u>*REWIND</u></b>, *LEAVE, *UNLOAD</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#RST.OPTFILE"><b>OPTFILE</b></a></td>
<td valign="top">Optical file</td>
<td valign="top"><i>Path name</i>, <b><u>*</u></b></td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#RST.INFTYPE"><b>INFTYPE</b></a></td>
<td valign="top">Type of output information</td>
<td valign="top"><b><u>*ALL</u></b>, *ERR, *SUMMARY</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#RST.SYSTEM"><b>SYSTEM</b></a></td>
<td valign="top">System</td>
<td valign="top">*ALL, <b><u>*LCL</u></b>, *RMT</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#RST.SAVDATE"><b>SAVDATE</b></a></td>
<td valign="top">Date when saved</td>
<td valign="top"><i>Date</i></td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#RST.SAVTIME"><b>SAVTIME</b></a></td>
<td valign="top">Time when saved</td>
<td valign="top"><i>Time</i></td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#RST.OPTION"><b>OPTION</b></a></td>
<td valign="top">Option</td>
<td valign="top"><b><u>*ALL</u></b>, *NEW, *OLD</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#RST.ALWOBJDIF"><b>ALWOBJDIF</b></a></td>
<td valign="top">Allow object differences</td>
<td valign="top">Single values: <b><u>*NONE</u></b>, *ALL<br>Other values (up to 3 repetitions): *AUTL, *OWNER, *PGP</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top" rowspan="3"><a href="#RST.FRCOBJCVN"><b>FRCOBJCVN</b></a></td>
<td valign="top">Force object conversion</td>
<td valign="top">Single values: <b><u>*SYSVAL</u></b>, *NO<br>Other values: <i>Element list</i></td>
<td valign="top" rowspan="3">Optional</td>
</tr>
<tr>
<td valign="top">Element 1: Convert during restore</td>
<td valign="top">
<b><u>*YES</u></b></td>
</tr>
<tr>
<td valign="top">Element 2: Objects to convert</td>
<td valign="top">
<b><u>*RQD</u></b>, *ALL</td>
</tr>
<tr>
<td valign="top"><a href="#RST.OBJID"><b>OBJID</b></a></td>
<td valign="top">Object ID</td>
<td valign="top"><b><u>*SAVED</u></b>, *SYS</td>
<td valign="top">Optional</td>
</tr>
</table>
<table width="100%">
<tr><td align="right"><a href="#RST.Top_Of_Page">Top</a></td></tr>
</table>
</div>
<div> <a name="RST.DEV"></a>
<h3>Device (DEV)</h3>
<p>Specifies the device from which the objects are restored.
</p>
<p>For more information on specifying device path names, refer to "Specifying the device name" in the Backup and Recovery information in the iSeries Information Center at http://www.ibm.com/eserver/iseries/infocenter.
</p>
<p>This is a required parameter.
</p>
<dl>
<dt><b><i>'save-file-path-name'</i></b></dt>
<dd>Specify the path name of the save file used to restore the objects.
</dd>
<dt><b><i>'optical-device-path-name'</i></b></dt>
<dd>Specify the path name of the optical device used to restore the objects.
</dd>
<dt><b><i>'tape-media-library-device-path-name'</i></b></dt>
<dd>Specify the path name of the tape media library used to restore the objects.
</dd>
<dt><b><i>'tape-device-path-name'</i></b></dt>
<dd>Specify the path name of the tape device used to restore the objects. A maximum of four tape devices can be specified. If a virtual tape device is used, it must be the only device specified.
</dd>
<dt><b><i>'media-definition-path-name'</i></b></dt>
<dd>Specify the path name of the media definition (*MEDDFN) object that identifies the devices and media used to restore the data.
<p>For information about creating a media definition, see the Create Media Definition API in the System API Reference information in the iSeries Information Center at http://www.ibm.com/eserver/iseries/infocenter.
</p>
<p>For information about using a media definition, see the Backup and Recovery book, SC41-5304 and the Backup Your Server topic topic in the System API Reference information in the iSeries Information Center at http://www.ibm.com/eserver/iseries/infocenter.
</p>
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#RST.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="RST.OBJ"></a>
<h3>Objects (OBJ)</h3>
<p>Specifies the path name of the object to restore. You can specify a pattern for this path name. A maximum of 300 path names can be specified.
</p>
<p>For more information on specifying path names, refer to "Object naming rules" in the CL concepts and reference topic in the iSeries Information Center at http://www.ibm.com/eserver/iseries/infocenter.
</p>
<p>Additional information about object name patterns is in the Integrated file system information in the iSeries Information Center at http://www.ibm.com/eserver/iseries/infocenter.
</p>
<p><b>Element 1: Name </b>
</p>
<p>Specifies the objects saved on the media. Directory abbreviations (for example, the current directory) are expanded with their current values, not the values they had at the time of the save operation.
</p>
<dl>
<dt><b><u>'*'</u></b></dt>
<dd>The objects in the current directory are restored.
</dd>
<dt><b><i>path-name</i></b></dt>
<dd>Specify an object path name or a pattern that can match many names. If *SAME is specified for the third element of this parameter, each component in the path name must exist with the exception of the last component. The object name in the last component is restored as new if it doesn't exist.
</dd>
</dl>
<p><b>Element 2: Include or omit </b>
</p>
<p>Specifies whether names that match the pattern should be included or omitted from the operation. Note that in determining whether a name matches a pattern, relative name patterns are always treated as relative to the current working directory.
</p>
<p>
<b>Note: </b>The SUBTREE parameter determines whether the subtrees are included or omitted.
</p>
<dl>
<dt><b><u>*INCLUDE</u></b></dt>
<dd>The objects that match the object name pattern are to be restored, unless overridden by an *OMIT specification.
</dd>
<dt><b>*OMIT</b></dt>
<dd>The objects that match the object name pattern are not to be restored. This overrides an *INCLUDE specification and is intended to be used to omit a subset of a previously selected pattern.
</dd>
</dl>
<p><b>Element 3: New object name </b>
</p>
<p>Specifies the new path name of the object.
</p>
<dl>
<dt><b><u>*SAME</u></b></dt>
<dd>The objects are to be restored with the same names they had when they were saved.
</dd>
<dt><b><i>path-name</i></b></dt>
<dd>Specify the path name with which to restore the object. If a pattern is specified in the first element, the new path name must be the directory into which to restore any objects that match the pattern. If an object name is specified in element 1, each component in the new path name must exist with the exception of the last component. If the object described in the last component doesn't exist, it will be restored as new.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#RST.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="RST.PATTERN"></a>
<h3>Name pattern (PATTERN)</h3>
<p>Specifies a pattern to be used to include or omit objects. A maximum of 300 patterns can be specified.
</p>
<p><b>Element 1: Pattern </b>
</p>
<dl>
<dt><b><u>'*'</u></b></dt>
<dd>All objects which qualify for the operation are included or omitted.
</dd>
<dt><b><i>character-value</i></b></dt>
<dd>Specify an object name or a pattern that can match many names.
</dd>
</dl>
<p><b>Element 2: Include or omit </b>
</p>
<p>Specifies whether names that match the pattern should be included or omitted from the operation.
</p>
<p>
<b>Note: </b>The SUBTREE parameter determines whether the subtrees are included or omitted.
</p>
<dl>
<dt><b><u>*INCLUDE</u></b></dt>
<dd>Only objects which are included by the OBJ parameter and match the PATTERN parameter are included in the restore, unless overridden by an *OMIT specification.
</dd>
<dt><b>*OMIT</b></dt>
<dd>All objects which are included by the OBJ parameter are included in the restore except those objects which match the PATTERN parameter. This overrides an *INCLUDE specification and is intended to be used to omit a subset of a previously selected pattern.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#RST.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="RST.SUBTREE"></a>
<h3>Directory subtree (SUBTREE)</h3>
<p>Specifies whether directory subtrees are included in the restore operation.
</p>
<dl>
<dt><b><u>*ALL</u></b></dt>
<dd>The entire subtree of each directory that matches the object name pattern is processed. The subtree includes all subdirectories and the objects within those subdirectories.
</dd>
<dt><b>*DIR</b></dt>
<dd>The objects in the first level of each directory that matches the object name pattern are processed. The subdirectories of each matching directory are included, but the objects in the subdirectories are not included.
</dd>
<dt><b>*NONE</b></dt>
<dd>No subtrees are included in the restore operation. If a directory matches the object name pattern specified, the objects in the directory are included. If the directory has subdirectories, neither the subdirectories nor the objects in the subdirectories are included.
</dd>
<dt><b>*OBJ</b></dt>
<dd>Only the objects that match the object name pattern will be processed. If the object name pattern specifies a directory, objects in the directory are not included.
</dd>
<dt><b>*STG</b></dt>
<dd>The objects that match the object name pattern are processed along with the storage for related objects. Objects can only be restored using this value if they were saved with SUBTREE(*STG).
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#RST.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="RST.OUTPUT"></a>
<h3>Output (OUTPUT)</h3>
<p>Specifies whether a list of information about the restored objects is created. The information can be directed to a spooled file, a stream file, or a user space.
</p>
<p>A stream file or user space is specified as a path name.
</p>
<p>For more information on specifying path names, refer to "Object naming rules" in the CL concepts and reference topic in the iSeries Information Center at http://www.ibm.com/eserver/iseries/infocenter.
</p>
<dl>
<dt><b><u>*NONE</u></b></dt>
<dd>No output is created.
</dd>
<dt><b>*PRINT</b></dt>
<dd>Output information about the restore will be printed.
</dd>
<dt><b><i>'stream-file-path-name'</i></b></dt>
<dd>Specify the path name of the existing stream file to which the output of the command is directed.
</dd>
<dt><b><i>'user-space-path-name'</i></b></dt>
<dd>Specify the path name of the existing user space to which the output of the command is directed.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#RST.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="RST.CRTPRNDIR"></a>
<h3>Create parent directories (CRTPRNDIR)</h3>
<p>Specifies whether parent directories of objects being restored should be created if they do not exist. For example, if object '/a/b/c/file1' is being restored then directories '/a', '/a/b' and '/a/b/c' must exist. This parameter only applies to "root" (/), QOpenSys and user-defined file systems, and will be ignored for all other file systems.
</p>
<dl>
<dt><b><u>*NO</u></b></dt>
<dd>Parent directories will not be created if they do not exist. Diagnostic message CPD375B will be sent and the object will not be restored.
</dd>
<dt><b>*YES</b></dt>
<dd>The restore will create parent directories if they do not exist. The directories created by the restore will have *EXCLUDE public authority and will be owned by the user profile specified for the <b>Parent directory owner (PRNDIROWN)</b> parameter. The other parent directory attributes will be set using the shipped default values for the <b>Create Directory (CRTDIR)</b> command parameters.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#RST.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="RST.PRNDIROWN"></a>
<h3>Parent directory owner (PRNDIROWN)</h3>
<p>Specifies the name of an existing user profile that will own parent directories created by the restore. This parameter only applies to "root" (/), QOpenSys and user-defined file systems, and will be ignored for all other file systems.
</p>
<p>
<b>Note: </b>If a value is specified for this parameter, *YES must be specified for the <b>Create parent directories (CRTPRNDIR)</b> parameter.
</p>
<dl>
<dt><b><u>*PARENT</u></b></dt>
<dd>The owner of a parent directory being created by the restore will be the same as the owner of the directory it is being created into. For example, if object '/a/b/c/file1' is being restored and directory '/a' exists but the '/b' and '/b/c' directories do not exist, the '/b' and '/b/c' directories are created with the same owner as the '/a' directory.
</dd>
<dt><b><i>name</i></b></dt>
<dd>Specify the name of a user profile to be the owner of any parent directories that are created by the restore.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#RST.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="RST.VOL"></a>
<h3>Volume identifier (VOL)</h3>
<p>Specifies the volume identifiers of the media or the cartridge identifiers of tapes in a tape media library device, from which the objects are being restored. The volumes must be in the same order as they were when the data was saved. The volume that contains the beginning of the file to be restored should be placed in the device.
</p>
<p>
<b>Note: </b>The version of the object that is restored is the first version found in the specified location, unless a specific version is identified by the values on the SAVDATE and SAVTIME parameters.
</p>
<p><b>Single values</b>
</p>
<dl>
<dt><b><u>*MOUNTED</u></b></dt>
<dd>The objects are restored from the volumes placed in the device specified for the <b>Device (DEV)</b> parameter. For a media library device, the volume to be used is the next cartridge in the category mounted by the Set Tape Category (SETTAPCGY) command.
<p>
<b>Note: </b>This value cannot be specified when using an optical media library device.
</p>
</dd>
</dl>
<p><b>Other values (up to 75 repetitions)</b>
</p>
<dl>
<dt><b><i>character-value</i></b></dt>
<dd>Specify the identifiers of one or more volumes in the order in which they are placed in a device and used to restore the data.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#RST.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="RST.LABEL"></a>
<h3>Label (LABEL)</h3>
<p>Specifies the file identifier of the media to be used for the restore operation.
</p>
<dl>
<dt><b><u>*SEARCH</u></b></dt>
<dd>The file label for which to search is determined by the system.
</dd>
<dt><b><i>character-value</i></b></dt>
<dd>Specify the identifier (up to 17 characters) of the tape file to be used for the restore operation.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#RST.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="RST.SEQNBR"></a>
<h3>Sequence number (SEQNBR)</h3>
<p>Specifies the tape file sequence number to be used.
</p>
<dl>
<dt><b><u>*SEARCH</u></b></dt>
<dd>The tape volume is searched for the next file that contains any of the specified objects.
</dd>
<dt><b><i>1-16777215</i></b></dt>
<dd>Specify the sequence number of the file.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#RST.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="RST.ENDOPT"></a>
<h3>End of media option (ENDOPT)</h3>
<p>Specifies the operation that is automatically done on the tape or optical volume after the restore operation ends. If more than one volume is used, this parameter applies only to the last volume used; all other volumes are unloaded when the end of the volume is reached.
</p>
<p>
<b>Note: </b>This parameter is valid only if a tape or optical device name is specified for the DEV parameter. For optical devices, *UNLOAD is the only special value supported, *REWIND and *LEAVE will be ignored.
</p>
<dl>
<dt><b><u>*REWIND</u></b></dt>
<dd>The tape is automatically rewound, but not unloaded, after the operation has ended.
</dd>
</dl>
<dl>
<dt><b>*LEAVE</b></dt>
<dd>The tape does not rewind or unload after the operation ends. It remains at the current position on the tape drive.
</dd>
</dl>
<dl>
<dt><b>*UNLOAD</b></dt>
<dd>The tape is automatically rewound and unloaded after the operation ends. Some optical devices will eject the volume after the operation ends.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#RST.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="RST.OPTFILE"></a>
<h3>Optical file (OPTFILE)</h3>
<p>Specifies the path name of the optical file that is used for the restore operation, beginning with the root directory of the volume.
</p>
<p>For more information on specifying path names, refer to "Object naming rules" in the CL concepts and reference topic in the iSeries Information Center at http://www.ibm.com/eserver/iseries/infocenter.
</p>
<dl>
<dt><b><u>*</u></b></dt>
<dd>The system searches the root directory of the optical volume for the default name generated by the corresponding save operation.
</dd>
<dt><b><i>'optical-directory-path-name/*'</i></b></dt>
<dd>The system searches the specified directory of the optical volume for the default name generated by the corresponding save operation.
</dd>
</dl>
<dl>
<dt><b><i>'optical-file-path-name'</i></b></dt>
<dd>Specify the path name of the optical file.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#RST.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="RST.INFTYPE"></a>
<h3>Type of output information (INFTYPE)</h3>
<p>Specifies the type of information which is directed to the spooled file, stream file, or user space.
</p>
<dl>
<dt><b><u>*ALL</u></b></dt>
<dd>The file will contain information about the command, an entry for each directory, an entry for each object that was successfully restored, and an entry for each object that was not successfully restored.
</dd>
<dt><b>*ERR</b></dt>
<dd>The file will contain information about the command, an entry for each directory, and an entry for each object that was not successfully restored.
</dd>
<dt><b>*SUMMARY</b></dt>
<dd>The file will contain information about the command, and an entry for each directory.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#RST.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="RST.SYSTEM"></a>
<h3>System (SYSTEM)</h3>
<p>Specifies whether to process objects that exist on the local system or remote systems.
</p>
<dl>
<dt><b><u>*LCL</u></b></dt>
<dd>Only local objects are processed.
</dd>
<dt><b>*RMT</b></dt>
<dd>Only remote objects are processed.
</dd>
<dt><b>*ALL</b></dt>
<dd>Both local and remote objects are processed.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#RST.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="RST.SAVDATE"></a>
<h3>Date when saved (SAVDATE)</h3>
<p>Specifies the date the objects were saved. If the most recently saved version is not the one being restored, or if multiple saved versions reside on the media, specify the date that identifies which version of the objects to restore.
</p>
<p>The date must be specified in the job date format. If the separators that are specified by the system value QDATSEP are used, the value must be enclosed in apostrophes.
</p>
<p>
<b>Note: </b>This parameter is valid only if a volume identifier or the value *MOUNTED is specified for the VOL parameter, or if *SAVF is specified for the DEV parameter. If this parameter is valid and is not specified, the restored version of the objects is the first version found.
</p>
<dl>
<dt><b><i>date</i></b></dt>
<dd>Specify the date the objects to be restored were saved.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#RST.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="RST.SAVTIME"></a>
<h3>Time when saved (SAVTIME)</h3>
<p>Specifies the time the objects were saved.
</p>
<dl>
<dt><b></b></dt>
<dd>The time is specified in 24-hour format with or without a time separator as follows:
<ul>
<li>With a time separator, specify a string of 5 or 8 digits, where the time separator for the job separates the hours, minutes, and seconds. If you issue this command from the command line, the string must be enclosed in apostrophes. If a time separator other than the separator specified for your job is used, this command fails.
</li>
<li>Without a time separator, specify a string of 4 or 6 digits (hhmm or hhmmss) where <b>hh</b> = hours, <b>mm</b> = minutes, and <b>ss</b> = seconds. Valid values for <b>hh</b> range from 00 through 23. Valid values for <b>mm</b> and <b>ss</b> range from 00 through 59.
</li>
</ul>
</dd>
</dl>
<p>If a volume identifier or the value *MOUNTED is specified for the VOL parameter, and the SAVTIME parameter is not specified, the version of the objects to be restored is the first version found on the volume.
</p>
<p><b>Notes:</b>
</p>
<ol>
<li>This parameter is valid only if the SAVDATE parameter is specified.
</li>
<li>This parameter is ignored when the SEQNBR parameter is specified.
</li>
</ol>
<dl>
<dt><b><i>time</i></b></dt>
<dd>Specify the time the objects to be restored were saved.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#RST.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="RST.OPTION"></a>
<h3>Option (OPTION)</h3>
<p>Specifies whether to restore objects that already exist on the system or objects that do not already exist on the system.
</p>
<dl>
<dt><b><u>*ALL</u></b></dt>
<dd>All of the specified objects are restored, whether they already exist on the system or not.
</dd>
<dt><b>*NEW</b></dt>
<dd>Objects are restored only if they do not already exist on the system.
</dd>
<dt><b>*OLD</b></dt>
<dd>Objects are restored only if they already exist on the system.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#RST.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="RST.ALWOBJDIF"></a>
<h3>Allow object differences (ALWOBJDIF)</h3>
<p>Specifies whether differences are allowed between the saved objects and the restored objects.
</p>
<p><b>Notes:</b>
</p>
<ol>
<li>You must have all object (*ALLOBJ) special authority to specify any value other than *NONE for this parameter.
</li>
<li>If differences are found, the final message for the restore operation is an escape message rather than the normal completion message.
</li>
</ol>
<p>The types of differences include:
</p>
<ul>
<li>Authorization list: The saved object had an authorization list, and either the object exists on the system but does not have the same authorization list, or the object does not exist and it is being restored to a different system than the save system.
<p>
<b>Note: </b>This parameter has no effect when the saved object did not have an authorization list. If the object exists, it is restored with the authorization list of the existing object. If it does not exist, it is restored with no authorization list.
</p>
</li>
</ul>
<ul>
<li>Ownership: The owner of an object on the system is different than the owner of an object from the save operation.
</li>
</ul>
<ul>
<li>Primary Group: The primary group of an object on the system is different than the primary group of an object from the save operation.
</li>
</ul>
<p><b>Single values</b>
</p>
<dl>
<dt><b><u>*NONE</u></b></dt>
<dd>None of the differences listed above are allowed on the restore operation. See the description of each individual value to determine how differences are handled.
</dd>
</dl>
<dl>
<dt><b>*ALL</b></dt>
<dd>All of the differences listed above are allowed on the restore operation. See the description of each individual value to determine how differences are handled.
</dd>
</dl>
<p><b>Other values (up to 3 repetitions)</b>
</p>
<dl>
<dt><b>*AUTL</b></dt>
<dd>Authorization list differences are allowed. If the saved object had an authorization list and the object exists on the system but does not have the same authorization list, the object is restored with the authorization list of the existing object. If the saved object had an authorization list and the object does not exist and it is being restored to a different system than the save system, the object is restored and it is linked to the authorization list. If the authorization list does not exist, the public authority is set to *EXCLUDE.
<p>If this value is not specified, authorization list differences are not allowed. If the saved object had an authorization list and the object exists on the system but does not have the same authorization list, the object is not restored. If the saved object had an authorization list and the object does not exist and it is being restored to a different system than the save system, the object is restored, but it is not linked to the authorization list, and the public authority is set to *EXCLUDE.
</p>
</dd>
</dl>
<dl>
<dt><b>*OWNER</b></dt>
<dd>Ownership differences are allowed. If an object already exists on the system with a different owner than the saved object, the object is restored with the owner of the object on the system.
<p>If this value is not specified, ownership differences are not allowed. If an object already exists on the system with a different owner than the saved object, the object is not restored.
</p>
</dd>
</dl>
<dl>
<dt><b>*PGP</b></dt>
<dd>Primary group differences are allowed. If an object already exists on the system with a different primary group than the saved object, the object is restored with the primary group of the object on the system.
<p>If this value is not specified, primary group differences are not allowed. If an object already exists on the system with a different primary group than the saved object, the object is not restored.
</p>
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#RST.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="RST.FRCOBJCVN"></a>
<h3>Force object conversion (FRCOBJCVN)</h3>
<p>Specifies whether to convert user objects to the format required for use in the current version of the operating system when the objects are restored.
</p>
<p><b>Notes:</b>
</p>
<ol>
<li>This parameter applies only to user objects of the *MODULE, *PGM, *SRVPGM, and *SQLPKG object types.
</li>
<li>An object must have creation data (either observable or unobservable) to be converted.
</li>
<li>If an object needs to be converted (because it is formatted for an earlier version of the operating system), but is not converted during this restore operation, the object is automatically converted the first time it is used.
</li>
</ol>
<p><b>Single values</b>
</p>
<dl>
<dt><b><u>*SYSVAL</u></b></dt>
<dd>The objects are converted based on the value of the QFRCCVNRST system value.
</dd>
<dt><b>*NO</b></dt>
<dd>The objects are not converted during the restore operation.
<p>
<b>Note: </b>If FRCOBJCVN(*NO) is specified, then the QFRCCVNRST system value must have a value of either "0" or "1".
</p>
</dd>
</dl>
<p><b>Element 1: Convert during restore</b>
</p>
<dl>
<dt><b><u>*YES</u></b></dt>
<dd>The objects are converted during the restore operation.
<p><b>Notes:</b>
</p>
<ol>
<li>If FRCOBJCVN(*YES *RQD) is specified, then the QFRCCVNRST system value must have a value of "0", "1", or "2". FRCOBJCVN(*YES *RQD) will override a QFRCCVNRST value of "0" or "1". If FRCOBJCVN(*YES *ALL) is specfied, then QFRCCVNRST can have any valid value and FRCOBJCVN(*YES *ALL) overrides the QFRCCVNRST system value.
</li>
<li>Specifying this value increases the time of the restore operation, but avoids the need to convert the objects when they are first used.
</li>
</ol>
</dd>
</dl>
<p><b>Element 2: Objects to convert</b>
</p>
<dl>
<dt><b><u>*RQD</u></b></dt>
<dd>The objects are converted only if they require conversion to be used by the current operating system. If the objects do not have all creation data (either observable or unobservable), the objects cannot be converted and will not be restored.
</dd>
<dt><b>*ALL</b></dt>
<dd>All objects are converted regardless of their current format, including objects already in the current format. However, if the objects do not have all creation data (either observable or unobservable), the objects cannot be converted and will not be restored.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#RST.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="RST.OBJID"></a>
<h3>Object ID (OBJID)</h3>
<p>This parameter has been disabled and is no longer valid.
</p>
</div>
<table width="100%">
<tr><td align="right"><a href="#RST.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div><h3><a name="RST.COMMAND.EXAMPLES">Examples</a> </h3>
<p><b>Example 1: Restoring All Data Not in Libraries or Document Library Objects</b>
</p>
<p>
<pre>
RST DEV('/QSYS.LIB/TAP01.DEVD')
OBJ(('/*') ('/QSYS.LIB' *OMIT) ('/QDLS' *OMIT))
</pre>
</p>
<p>This command restores all objects that are not in libraries and are not document library objects.
</p>
<p><b>Example 2: Restoring a Library</b>
</p>
<p>
<pre>
RST DEV('/QSYS.LIB/TAP01.DEVD') OBJ('/QSYS.LIB/A.LIB')
</pre>
</p>
<p>This command restores the library A from the tape device named TAP01.
</p>
<p><b>Example 3: Restoring All Files in MYLIB</b>
</p>
<p>
<pre>
RST DEV('/QSYS.LIB/TAP01.DEVD')
OBJ('/QSYS.LIB/MYLIB.LIB/*.FILE')
</pre>
</p>
<p>This command restores all files in the library MYLIB from the tape device named TAP01.
</p>
<p><b>Example 4: Restoring All Objects in the Current Directory</b>
</p>
<p>
<pre>
RST DEV('/QSYS.LIB/TAP01.DEVD')
</pre>
</p>
<p>This command uses the default value on the OBJ parameter to restore all objects in the current directory and its subdirectories.
</p>
<p>
<pre>
RST DEV('/QSYS.LIB/TAP01.DEVD') OBJ('*') SUBTREE(*NONE)
</pre>
</p>
<p>This command restores all objects in the current directory but not in subdirectories.
</p>
<p>
<pre>
RST DEV('/QSYS.LIB/TAP01.DEVD') OBJ('.') SUBTREE(*DIR)
</pre>
</p>
<p>This command restores the current directory and all of the objects in the current directory. It does not restore objects in the subdirectories of the current directory.
</p>
<p><b>Example 5: Omitting Objects</b>
</p>
<p>
<pre>
RST DEV('/QSYS.LIB/TAP01.DEVD')
OBJ(('*') ('**.BACKUP' *OMIT) ('**.TEMP' *OMIT))
</pre>
</p>
<p>This command restores all objects in the current directory except those with extensions of .BACKUP and .TEMP (the entire subtrees of directories with these extensions are omitted).
</p>
<p><b>Example 6: Renaming or Moving Objects</b>
</p>
<p>
<pre>
RST DEV('/QSYS.LIB/TAP01.DEVD')
OBJ(('MYDIR/X.PGM' *INCLUDE 'YOURDIR/Y.PGM'))
</pre>
</p>
<p>This command restores the program X from the directory MYDIR as the program Y in the directory YOURDIR.
</p>
<p>
<pre>
RST DEV('/QSYS.LIB/TAP01.DEVD')
OBJ(('MYDIR/*.PGM' *INCLUDE 'YOURDIR')) SUBTREE(*OBJ)
</pre>
</p>
<p>This command restores all programs in the directory MYDIR to the directory YOURDIR.
</p>
<p><b>Example 7: Restoring From a Save File</b>
</p>
<p>
<pre>
RST DEV('/QSYS.LIB/MYLIB.LIB/MYSAVF.FILE') OBJ(MYDIR)
</pre>
</p>
<p>This command restores the directory MYDIR from a save file named MYSAVF in a library named MYLIB.
</p>
<p><b>Example 8: Using Symbolic Links</b>
</p>
<p>Assume the current directory contains the following symbolic links.
</p>
<ul>
<li>DevLink = /QSYS.LIB/TAP01.DEVD
</li>
<li>DirLink = /SomeDirectory
</li>
<li>FileLink = /SomeDirectory/SomeFile
</li>
</ul>
<p>Symbolic links can be used to specify the device and output file. When symbolic links are restored, only the names of the associated objects are restored, not the content of the associated objects. A symbolic link to a directory can be used to restore objects in the directory. Additional information about symbolic link is in the <b>Integrated file system</b> topic in the <b>File systems and management</b> category of the Information Center. To restore the names associated with DirLink and FileLink from device TAP01:
</p>
<p>
<pre>
RST DEV('DevLink') OBJ(('DirLink') ('FileLink'))
</pre>
</p>
<p>To restore the objects in SomeDirectory from device TAP01:
</p>
<p>
<pre>
RST DEV('DevLink') OBJ(('DirLink/*'))
</pre>
</p>
</div>
<table width="100%">
<tr><td align="right"><a href="#RST.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div><h3><a name="RST.ERROR.MESSAGES">Error messages</a> </h3>
<p><b><u>*ESCAPE Messages</u></b>
</p>
<dl>
<dt><b>CPFA0DB</b></dt>
<dd>Object not a QSYS.LIB object. Object is &amp;1.
</dd>
<dt><b>CPFA0DC</b></dt>
<dd>Object not a QDLS object. Object is &amp;1.
</dd>
<dt><b>CPF370C</b></dt>
<dd>Not authorized to ALWOBJDIF parameter.
</dd>
<dt><b>CPF3707</b></dt>
<dd>Save file &amp;1 in &amp;2 contains no data.
</dd>
<dt><b>CPF3727</b></dt>
<dd>Duplicate device &amp;1 specified on device name list.
</dd>
<dt><b>CPF3738</b></dt>
<dd>Device &amp;1 used for save or restore is damaged.
</dd>
<dt><b>CPF3743</b></dt>
<dd>File cannot be restored, displayed, or listed.
</dd>
<dt><b>CPF3768</b></dt>
<dd>Device &amp;1 not valid for command.
</dd>
<dt><b>CPF3782</b></dt>
<dd>File &amp;1 in &amp;2 not a save file.
</dd>
<dt><b>CPF3794</b></dt>
<dd>Save or restore operation ended unsuccessfully.
</dd>
<dt><b>CPF380D</b></dt>
<dd>Save or restore of entire system completed unsuccessfully.
</dd>
<dt><b>CPF3805</b></dt>
<dd>Objects from save file &amp;1 in &amp;2 not restored.
</dd>
<dt><b>CPF381E</b></dt>
<dd>Not authorized to ALWOBJDIF parameter.
</dd>
<dt><b>CPF3812</b></dt>
<dd>Save file &amp;1 in &amp;2 in use.
</dd>
<dt><b>CPF382A</b></dt>
<dd>Specified parameter not valid for QDLS file system.
</dd>
<dt><b>CPF382B</b></dt>
<dd>Parameters not valid with multiple file systems.
</dd>
<dt><b>CPF382C</b></dt>
<dd>OBJ parameter value not valid for QSYS file system.
</dd>
<dt><b>CPF382D</b></dt>
<dd>Specified parameter not valid for QSYS file system.
</dd>
<dt><b>CPF382F</b></dt>
<dd>OBJ parameter value not valid for QDLS file system.
</dd>
<dt><b>CPF3823</b></dt>
<dd>No objects saved or restored.
</dd>
<dt><b>CPF3826</b></dt>
<dd>*INCLUDE object required on OBJ parameter.
</dd>
<dt><b>CPF3828</b></dt>
<dd>Error occurred while attempting to use &amp;1.
</dd>
<dt><b>CPF383A</b></dt>
<dd>Save or restore ended unsuccessfully.
</dd>
<dt><b>CPF383B</b></dt>
<dd>End of file &amp;1.
</dd>
<dt><b>CPF383C</b></dt>
<dd>Storage limit exceeded for user profile &amp;1.
</dd>
<dt><b>CPF383D</b></dt>
<dd>Cannot use &amp;1.
</dd>
<dt><b>CPF383E</b></dt>
<dd>&amp;1 objects restored. &amp;2 objects not restored.
</dd>
<dt><b>CPF3833</b></dt>
<dd>Specified value on DEV parameter not valid.
</dd>
<dt><b>CPF3834</b></dt>
<dd>Too many values specified on the DEV parameter.
</dd>
<dt><b>CPF3835</b></dt>
<dd>Tape devices do not support same densities.
</dd>
<dt><b>CPF3839</b></dt>
<dd>&amp;1 objects restored. &amp;2 not restored.
</dd>
<dt><b>CPF384A</b></dt>
<dd>Volume identifier &amp;1 not valid.
</dd>
<dt><b>CPF384B</b></dt>
<dd>Optical file specified not valid.
</dd>
<dt><b>CPF384C</b></dt>
<dd>Error occurred during CCSID conversion.
</dd>
<dt><b>CPF384F</b></dt>
<dd>&amp;2 &amp;1 not restored to library &amp;3.
</dd>
<dt><b>CPF3840</b></dt>
<dd>Specified file for restore operation not found.
</dd>
<dt><b>CPF38A5</b></dt>
<dd>Error on the PATTERN parameter.
</dd>
<dt><b>CPF5729</b></dt>
<dd>Not able to allocate object &amp;1.
</dd>
<dt><b>CPF9802</b></dt>
<dd>Not authorized to object &amp;2 in &amp;3.
</dd>
<dt><b>CPF9825</b></dt>
<dd>Not authorized to device &amp;1.
</dd>
<dt><b>OPT1498</b></dt>
<dd>Volume name list exhausted on device &amp;1.
</dd>
<dt><b>OPT1502</b></dt>
<dd>Attempted to process past the end of a multi-volume set.
</dd>
<dt><b>OPT1605</b></dt>
<dd>Media or device error occurred.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#RST.Top_Of_Page">Top</a></td></tr>
</table>
</body>
</html>