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

768 lines
33 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 User Profiles (RSTUSRPRF)</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="RSTUSRPRF.Top_Of_Page"></a>
<h2>Restore User Profiles (RSTUSRPRF)</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="#RSTUSRPRF.PARAMETERS.TABLE">Parameters</a><br>
<a href="#RSTUSRPRF.COMMAND.EXAMPLES">Examples</a><br>
<a href="#RSTUSRPRF.ERROR.MESSAGES">Error messages</a></td>
</tr>
</table>
<div> <a name="RSTUSRPRF"></a>
<p>The Restore User Profile (RSTUSRPRF) command restores the basic parts of a user profile or a set of user profiles that were saved by the Save System (SAVSYS) command or Save Security Data (SAVSECDTA) command. The Restore User Profile (RSTUSRPRF) command restores only the special authority granted in the Create User Profile (CRTUSRPRF) command; it does not restore the authority for the named objects owned by other users. To restore authority for objects owned by other users, the Restore Authority (RSTAUT) command must be used after the profiles, libraries, and objects are restored. If all user profiles are being restored, authorization lists and authority holders that existed when the SAVSYS or SAVSECDTA command was run are also restored.
</p>
<p>If you specify USRPRF(*ALL) or SECDTA(*DCM), all other operations on the system must be stopped. This requires ending all subsystems through the End Subsystem (ENDSBS(*ALL)) command or End System (ENDSYS) command or specifying this command when the operating system is started. The RSTUSRPRF command is normally used after the restore of the operating system but before the user libraries are restored. The user profiles must be restored before any libraries or objects belonging to them can be restored. After the libraries and their objects are restored, the authority for the objects is restored to the user profiles by the RSTAUT command. At the completion of the command, either message CPF3775 or message CPC3705 is sent to QHST. More information on restoring the system is in the Backup and Recovery book, SC41-5304.
</p>
<p>The following situations may apply to user profiles being restored by the RSTUSRPRF command:
</p>
<ul>
<li>If a user profile exists on the system, but not on the media, the system profile remains.
</li>
<li>If a user profile exists on the media, but not on the system, a new user profile is created.
</li>
<li>If the user profile exists on both the media and the system, the media user profile is restored.
</li>
<li>If the user profile exists on the media and is being restored individually, the new user profile is created without its password or group connection.
</li>
<li>If the user profile exists on both the media and the system, and it is being restored individually, the media user profile is restored. However, the password and group connection on the system remains unchanged.
</li>
<li>If all user profiles are being restored, the passwords and group connections are also restored from the media.
</li>
<li>If user profiles exist on the system, there are no changes to the existing object authorities.
</li>
</ul>
<p>
<b>Note: </b>This command ignores all file overrides that are currently in effect for the job.
</p>
<p><b>Restrictions:</b>
</p>
<ul>
<li>You must have save system (SAVSYS) special authority to run this command.
</li>
<li>This command is shipped with no public authority (*EXCLUDE).
</li>
<li>If you specify USRPRF(*ALL) or SECDTA(*DCM), all other operations on the system must be ended. The End System (ENDSYS) or End Subsystem (ENDSBS) command can be used to end these operations. You must have job control (*JOBCTL) special authority to use the ENDSYS or ENDSBS command.
</li>
<li>You must specify USRPRF(*ALL) to restore authorization lists and authority holders.
</li>
</ul>
</div>
<table width="100%">
<tr><td align="right"><a href="#RSTUSRPRF.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div>
<h3><a name="RSTUSRPRF.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="#RSTUSRPRF.DEV"><b>DEV</b></a></td>
<td valign="top">Device</td>
<td valign="top">Single values: *SAVF<br>Other values (up to 4 repetitions): <i>Name</i></td>
<td valign="top">Required, Positional 1</td>
</tr>
<tr>
<td valign="top"><a href="#RSTUSRPRF.USRPRF"><b>USRPRF</b></a></td>
<td valign="top">User profile</td>
<td valign="top">Single values: <b><u>*ALL</u></b>, *NEW, *NONE<br>Other values (up to 300 repetitions): <i>Generic name, name</i></td>
<td valign="top">Optional, Positional 2</td>
</tr>
<tr>
<td valign="top"><a href="#RSTUSRPRF.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, Positional 3</td>
</tr>
<tr>
<td valign="top"><a href="#RSTUSRPRF.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="#RSTUSRPRF.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" rowspan="3"><a href="#RSTUSRPRF.SAVF"><b>SAVF</b></a></td>
<td valign="top">Save file</td>
<td valign="top"><i>Qualified object name</i></td>
<td valign="top" rowspan="3">Optional</td>
</tr>
<tr>
<td valign="top">Qualifier 1: Save file</td>
<td valign="top"><i>Name</i></td>
</tr><tr>
<td valign="top">Qualifier 2: Library</td>
<td valign="top"><i>Name</i>, <b><u>*LIBL</u></b>, *CURLIB</td>
</tr><tr>
<td valign="top"><a href="#RSTUSRPRF.MAIL"><b>MAIL</b></a></td>
<td valign="top">Mail</td>
<td valign="top"><b><u>*NO</u></b>, *YES</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#RSTUSRPRF.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"><a href="#RSTUSRPRF.OMITUSRPRF"><b>OMITUSRPRF</b></a></td>
<td valign="top">User profiles to omit</td>
<td valign="top">Single values: <b><u>*NONE</u></b><br>Other values (up to 300 repetitions): <i>Generic name, name</i></td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#RSTUSRPRF.SECDTA"><b>SECDTA</b></a></td>
<td valign="top">Security data</td>
<td valign="top"><b><u>*USRPRF</u></b>, *PVTAUT, *PWDGRP, *DCM</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#RSTUSRPRF.OUTPUT"><b>OUTPUT</b></a></td>
<td valign="top">Output</td>
<td valign="top"><b><u>*NONE</u></b>, *OUTFILE</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#RSTUSRPRF.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="#RSTUSRPRF.SAVASPDEV"><b>SAVASPDEV</b></a></td>
<td valign="top">Saved from ASP device</td>
<td valign="top"><i>Name</i>, <b><u>*ANY</u></b>, *, *SYSBAS, *CURASPGRP</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top" rowspan="3"><a href="#RSTUSRPRF.OUTFILE"><b>OUTFILE</b></a></td>
<td valign="top">File to receive output</td>
<td valign="top"><i>Qualified object name</i></td>
<td valign="top" rowspan="3">Optional</td>
</tr>
<tr>
<td valign="top">Qualifier 1: File to receive output</td>
<td valign="top"><i>Name</i></td>
</tr><tr>
<td valign="top">Qualifier 2: Library</td>
<td valign="top"><i>Name</i>, <b><u>*LIBL</u></b>, *CURLIB</td>
</tr><tr>
<td valign="top" rowspan="3"><a href="#RSTUSRPRF.OUTMBR"><b>OUTMBR</b></a></td>
<td valign="top">Output member options</td>
<td valign="top"><i>Element list</i></td>
<td valign="top" rowspan="3">Optional</td>
</tr>
<tr>
<td valign="top">Element 1: Member to receive output</td>
<td valign="top">
<i>Name</i>, <b><u>*FIRST</u></b></td>
</tr>
<tr>
<td valign="top">Element 2: Replace or add records</td>
<td valign="top">
<b><u>*REPLACE</u></b>, *ADD</td>
</tr>
</table>
<table width="100%">
<tr><td align="right"><a href="#RSTUSRPRF.Top_Of_Page">Top</a></td></tr>
</table>
</div>
<div> <a name="RSTUSRPRF.DEV"></a>
<h3>Device (DEV)</h3>
<p>Specifies the name of the device used for the restore operation. The device name must already be known on the system by a device description.
</p>
<p>This is a required parameter.
</p>
<p><b>Single values</b>
</p>
<dl>
<dt><b>*SAVF</b></dt>
<dd>The restore operation is done using the save file specified for the <b>Save file (SAVF)</b> parameter.
</dd>
</dl>
<p><b>Other values</b>
</p>
<dl>
<dt><b><i>optical-device-name</i></b></dt>
<dd>Specify the name of the optical device used for the restore operation.
</dd>
</dl>
<dl>
<dt><b><i>tape-media-library-device-name</i></b></dt>
<dd>Specify the name of the tape media library device used for the restore operation.
</dd>
</dl>
<dl>
<dt><b><i>tape-device-name</i></b></dt>
<dd>Specify the names of one or more tape devices used for the restore operation. If a virtual tape device is used, it must be the only device specified. If you are using more than one tape device (up to a maximum of four), specify the names of the devices in the order in which they are used. When more than one tape volume is to be restored, using more than one tape device permits one tape volume to be rewound while another tape device processes the next tape volume.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#RSTUSRPRF.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="RSTUSRPRF.USRPRF"></a>
<h3>User profile (USRPRF)</h3>
<p>Specifies the user profiles to be restored. The user profiles must exist on the media from the Save System (SAVSYS) or Save Security Data (SAVSECDTA) command in order to be restored.
</p>
<p><b>Single values</b>
</p>
<dl>
<dt><b><u>*ALL</u></b></dt>
<dd>All the user profiles, authorization lists, and authority holders saved by the Save System (SAVSYS) or Save Security Data (SAVSECDTA) command are restored.
</dd>
<dt><b>*NEW</b></dt>
<dd>All the user profiles, authorization lists, and authority holders saved by the Save System (SAVSYS) or Save Security Data (SAVSECDTA) command which currently do not exist on the system are restored.
</dd>
<dt><b>*NONE</b></dt>
<dd>No user profiles are restored. This value may be specified only if SECDTA(*DCM) is also specified.
</dd>
</dl>
<p><b>Other values (up to 300 repetitions)</b>
</p>
<dl>
<dt><b><i>generic-name</i></b></dt>
<dd>Specify one or more generic names of sets of user profiles to restore. A generic name is a character string that contains one or more characters followed by an asterisk (*). If an * is not specified with the name, the system assumes that the name is a complete user profile name.
</dd>
<dt><b><i>name</i></b></dt>
<dd>Specify one or more names of specific user profiles that are restored. Both generic names and specific names can be specified in the same command.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#RSTUSRPRF.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="RSTUSRPRF.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>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="#RSTUSRPRF.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="RSTUSRPRF.SEQNBR"></a>
<h3>Sequence number (SEQNBR)</h3>
<p>Specifies the sequence number of the tape file used for the restore process.
</p>
<dl>
<dt><b><u>*SEARCH</u></b></dt>
<dd>The volume placed in the device is searched for a file containing the saved user profiles; when a match is found, the user profiles are restored. If a match is not found, you must load another tape and try the command again.
<p>If the last operation on the device specified *LEAVE for the <b>End of media option (ENDOPT)</b> parameter, indicating that the tape is positioned at the location where the last operation ended, the file search starts with the first data file beyond the current tape position. If *LEAVE was not used for the ENDOPT parameter of the last operation, or if the tape was manually rewound since the operation, the search starts with the first data file on the volume.
</p>
</dd>
<dt><b><i>1-16777215</i></b></dt>
<dd>Specify the sequence number of the file to be used to restore user profiles.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#RSTUSRPRF.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="RSTUSRPRF.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="#RSTUSRPRF.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="RSTUSRPRF.SAVF"></a>
<h3>Save file (SAVF)</h3>
<p>Specifies the save file used to restore the data.
</p>
<p>
<b>Note: </b>A value must be specified for this parameter if *SAVF is specified for the <b>Device (DEV)</b> parameter.
</p>
<p><b>Qualifier 1: Save file</b>
</p>
<dl>
<dt><b><i>name</i></b></dt>
<dd>Specify the name of save file to be used.
</dd>
</dl>
<p><b>Qualifier 2: Library</b>
</p>
<dl>
<dt><b><u>*LIBL</u></b></dt>
<dd>All libraries in the library list for the current thread are searched until the first match is found.
</dd>
</dl>
<dl>
<dt><b>*CURLIB</b></dt>
<dd>The current library for the thread is used to locate the save file. If no current library entry exists in the library list, the QGPL library is used.
</dd>
<dt><b><i>name</i></b></dt>
<dd>Specify the name of the library where the save file is located.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#RSTUSRPRF.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="RSTUSRPRF.MAIL"></a>
<h3>Mail (MAIL)</h3>
<p>Specifies whether the OfficeVision distribution objects saved from a release before V2R2M0 are restored.
</p>
<p>
<b>Note: </b>You can specify *YES on this parameter only if you specify *ALL for the <b>User profile (USRPRF)</b> parameter.
</p>
<dl>
<dt><b><u>*NO</u></b></dt>
<dd>Distribution objects that are part of your mail are not restored along with restoring the user profile.
</dd>
<dt><b>*YES</b></dt>
<dd>Distribution objects that are part of your mail are restored along with restoring the user profile if the save data was created before release V2R2M0. Otherwise, no distribution objects are restored. For saved distribution objects created on V2R2M0 or later, specify DLO(*MAIL) on the Restore Document Library Objects (RSTDLO) command to restore your mail.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#RSTUSRPRF.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="RSTUSRPRF.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>
<dl>
<dt><b></b></dt>
<dd>
<p>
<b>Note: </b>The *PGP value does not apply to user profiles. User profiles with primary group differences are always restored.
</p>
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#RSTUSRPRF.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="RSTUSRPRF.OMITUSRPRF"></a>
<h3>User profiles to omit (OMITUSRPRF)</h3>
<p>Specifies user profiles to be omitted from the restore.
</p>
<p><b>Single values</b>
</p>
<dl>
<dt><b><u>*NONE</u></b></dt>
<dd>None of the user profiles will be omitted from the restore.
</dd>
</dl>
<p><b>Other values (up to 300 repetitions)</b>
</p>
<dl>
<dt><b><i>generic-name</i></b></dt>
<dd>Specify one or more generic names of sets of user profiles to be omitted from the restore. A generic name is a character string that contains one or more characters followed by an asterisk (*); for example, ABC*. The asterisk (*) substitutes for any valid character. A generic names specifies all user profiles that begin with the prefix. If an asterisk is not included with the generic name, the system assumes it to be the complete object name.
</dd>
<dt><b><i>name</i></b></dt>
<dd>Specify one or more names of specific user profiles that are to be omitted from the restore. Both generic names and specific names can be specified in the same command.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#RSTUSRPRF.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="RSTUSRPRF.SECDTA"></a>
<h3>Security data (SECDTA)</h3>
<p>Specifies whether all authority information or only the private authorities are restored for the specified user profiles and auxiliary storage. Also specifies whether the password and group linkages are to be restored for the specified user profiles.
</p>
<dl>
<dt><b><u>*USRPRF</u></b></dt>
<dd>All of the specified user profiles, authorization lists, authority holders, and private authorities, saved by the SAVSYS or SAVSECDTA command are restored.
</dd>
<dt><b>*PVTAUT</b></dt>
<dd>Only the private authorities for the specified user profiles and auxiliary storage pools are restored. The information is used by the Restore Authority (RSTAUT) command to restore the private authorities to the referenced objects. This value cannot be specified if USRPRF(*NEW) is specified.
</dd>
<dt><b>*PWDGRP</b></dt>
<dd>The passwords and group linkages for the specified user profiles are restored with the user profiles. This value cannot be specified if USRPRF(*ALL) is specified.
</dd>
<dt><b>*DCM</b></dt>
<dd>Only the internal objects required by Digital Certificate Manager (DCM) are restored. No user profiles are restored. If this value is specified then USRPRF(*NONE) must also be specified.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#RSTUSRPRF.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="RSTUSRPRF.OUTPUT"></a>
<h3>Output (OUTPUT)</h3>
<p>Specifies whether a listing that shows information about the status of the objects is created and directed to an output file. The listing shows the restore information and shows all objects restored, not restored, and excluded. Information about each object's security is listed for the restored objects.
</p>
<dl>
<dt><b><u>*NONE</u></b></dt>
<dd>No output is created.
</dd>
<dt><b>*OUTFILE</b></dt>
<dd>The output is directed to the database file specified for the <b>File to receive output (OUTFILE)</b> parameter.
<p>
<b>Note: </b>You must specify a database file name for the OUTFILE parameter when *OUTFILE is specified for this parameter.
</p>
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#RSTUSRPRF.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="RSTUSRPRF.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>
</div>
<table width="100%">
<tr><td align="right"><a href="#RSTUSRPRF.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="RSTUSRPRF.SAVASPDEV"></a>
<h3>Saved from ASP device (SAVASPDEV)</h3>
<p>Specifies the name of the auxiliary storage pool (ASP) device from which private authority information was saved. The private authority information is restored for later use by the Restore Authority (RSTAUT) function.
</p>
<dl>
<dt><b><u>*ANY</u></b></dt>
<dd>The private authority information saved from all ASPs included in the save operation is restored.
</dd>
<dt><b>*</b></dt>
<dd>The private authority information saved from the system ASP (ASP number 1), all basic user ASPs (ASP numbers 2-32), and, if the current thread has an ASP group, all independent ASPs in the ASP group is restored.
</dd>
<dt><b>*SYSBAS</b></dt>
<dd>The private authority information saved from the system ASP and all basic user ASPs is restored.
</dd>
<dt><b>*CURASPGRP</b></dt>
<dd>If the current thread has an ASP group, the private authority information saved from all independent ASPs in the ASP group is restored.
</dd>
<dt><b><i>name</i></b></dt>
<dd>Specify the name of the ASP device from which private authority information was saved.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#RSTUSRPRF.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="RSTUSRPRF.OUTFILE"></a>
<h3>File to receive output (OUTFILE)</h3>
<p>Specifies the database file to which the information is directed when *OUTFILE is specified for the <b>Output (OUTPUT)</b> parameter. If the file does not exist, this command creates a database file in the specified library. If a new file is created, the system uses QASRRSTO in QSYS with the format name QSRRST as a model.
</p>
<p><b>Qualifier 1: File to receive output</b>
</p>
<dl>
<dt><b><i>name</i></b></dt>
<dd>Specify the name of the database file to which output from the command is directed. If this file does not exist, it is created in the specified library.
</dd>
</dl>
<p><b>Qualifier 2: Library</b>
</p>
<dl>
<dt><b><u>*LIBL</u></b></dt>
<dd>All libraries in the library list for the current thread are searched until the first match is found.
</dd>
</dl>
<dl>
<dt><b>*CURLIB</b></dt>
<dd>The current library for the thread is used to locate the file. If no library is specified as the current library for the job, the QGPL library is used.
</dd>
</dl>
<dl>
<dt><b><i>name</i></b></dt>
<dd>Specify the name of the library to be searched.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#RSTUSRPRF.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="RSTUSRPRF.OUTMBR"></a>
<h3>Output member options (OUTMBR)</h3>
<p>Specifies the name of the database file member to which the output is directed when *OUTFILE is specified for the <b>Output (OUTPUT)</b> parameter.
</p>
<p><b>Element 1: Member to receive output</b>
</p>
<dl>
<dt><b><u>*FIRST</u></b></dt>
<dd>The first member in the file receives the output. If OUTMBR(*FIRST) is specified and the member does not exist, the system creates a member with the name of the file specified for the <b>File to receive output (OUTFILE)</b> parameter.
</dd>
<dt><b><i>name</i></b></dt>
<dd>Specify the name of the file member that receives the output. If OUTMBR(member-name) is specified and the member does not exist, the system creates it.
<p>If the member exists, you can add records to the end of the existing member or clear the existing member and add the records.
</p>
</dd>
</dl>
<p><b>Element 2: Replace or add records</b>
</p>
<dl>
<dt><b><u>*REPLACE</u></b></dt>
<dd>The existing records in the specified database file member are replaced by the new records.
</dd>
<dt><b>*ADD</b></dt>
<dd>The new records are added to the existing information in the specified database file member.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#RSTUSRPRF.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div><h3><a name="RSTUSRPRF.COMMAND.EXAMPLES">Examples</a> </h3>
<p><b>Example 1: Restoring All Profiles</b>
</p>
<p>
<pre>
RSTUSRPRF DEV(TAP01) SEQNBR(*SEARCH) ENDOPT(*REWIND)
</pre>
</p>
<p>This command restores all user profiles contained on the tape currently put on the tape drive named TAP01 to the system. The tape is searched for the file, and the tape is rewound on completion or at the end of restore.
</p>
<p><b>Example 2: Restoring Specific User Profiles</b>
</p>
<p>
<pre>
RSTUSRPRF DEV(TAP01) USRPRF(USRA USRB USRC USER*)
</pre>
</p>
<p>This command restores user profiles USRA, USRB, and USRC, along with all the user profiles whose names start with USER. The saved version of all the user profiles must exist on the tape placed on tape drive TAP01.
</p>
<p><b>Example 3: Restoring User Profiles from a Save File</b>
</p>
<p>
<pre>
RSTUSRPRF DEV(*SAVF) USRPRF(USRX USRY) SAVF(QGPL/SAVESEC)
</pre>
</p>
<p>This command restores user profiles USRX and USRY to the system from the save file SAVESEC in library QGPL.
</p>
<p><b>Example 4: Reporting Information about User Profiles Restored and Not Restored</b>
</p>
<p>
<pre>
RSTUSRPRF DEV(TAP01) USRPRF(*ALL) OUTPUT(*OUTFILE)
OUTFILE(PRFS92) OUTMBR(FOURQT *ADD)
</pre>
</p>
<p>This command restores all user profiles from the tape device TAP01. A list reporting information about user profiles restored and not restored is directed to the output file PRFS92. The output is received in the member FOURQT as an addition to existing information in the member.
</p>
</div>
<table width="100%">
<tr><td align="right"><a href="#RSTUSRPRF.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div><h3><a name="RSTUSRPRF.ERROR.MESSAGES">Error messages</a> </h3>
<p><b><u>*ESCAPE Messages</u></b>
</p>
<dl>
<dt><b>CPD3774</b></dt>
<dd>USRPRF(*ALL) required when MAIL(*YES) specified.
</dd>
<dt><b>CPF2206</b></dt>
<dd>User needs authority to do requested function on object.
</dd>
<dt><b>CPF222E</b></dt>
<dd>&amp;1 special authority is required.
</dd>
<dt><b>CPF370C</b></dt>
<dd>Not authorized to ALWOBJDIF parameter.
</dd>
<dt><b>CPF3709</b></dt>
<dd>Tape devices do not support same densities.
</dd>
<dt><b>CPF3727</b></dt>
<dd>Duplicate device &amp;1 specified on device name list.
</dd>
<dt><b>CPF3728</b></dt>
<dd>Device &amp;1 specified with other devices.
</dd>
<dt><b>CPF3733</b></dt>
<dd>&amp;2 &amp;1 in &amp;3 previously damaged.
</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>CPF3748</b></dt>
<dd>Object information for library &amp;1 damaged.
</dd>
<dt><b>CPF376B</b></dt>
<dd>File &amp;1 not found.
</dd>
<dt><b>CPF3767</b></dt>
<dd>Device &amp;1 not found.
</dd>
<dt><b>CPF3768</b></dt>
<dd>Device &amp;1 not valid for command.
</dd>
<dt><b>CPF3775</b></dt>
<dd>Not all user profiles or authority objects restored.
</dd>
<dt><b>CPF3780</b></dt>
<dd>Specified file for library &amp;1 not found.
</dd>
<dt><b>CPF3782</b></dt>
<dd>File &amp;1 in &amp;2 not a save file.
</dd>
<dt><b>CPF3785</b></dt>
<dd>Not all subsystems ended.
</dd>
<dt><b>CPF3793</b></dt>
<dd>Machine or ASP storage limit reached.
</dd>
<dt><b>CPF3794</b></dt>
<dd>Save or restore operation ended unsuccessfully.
</dd>
<dt><b>CPF3796</b></dt>
<dd>Storage limit exceeded for user profile &amp;4.
</dd>
<dt><b>CPF380C</b></dt>
<dd>Library &amp;1 not restored.
</dd>
<dt><b>CPF3812</b></dt>
<dd>Save file &amp;1 in &amp;2 in use.
</dd>
<dt><b>CPF908A</b></dt>
<dd>Requester &amp;1 not enrolled.
</dd>
<dt><b>CPF9812</b></dt>
<dd>File &amp;1 in library &amp;2 not found.
</dd>
<dt><b>CPF9814</b></dt>
<dd>Device &amp;1 not found.
</dd>
<dt><b>CPF9833</b></dt>
<dd>*CURASPGRP or *ASPGRPPRI specified and thread has no ASP group.
</dd>
<dt><b>CPFB8ED</b></dt>
<dd>Device description &amp;1 not correct for operation.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#RSTUSRPRF.Top_Of_Page">Top</a></td></tr>
</table>
</body>
</html>