RESTORE

Required capabilities for restoring ￿les

Your capabilities determine whic h ￿les you may restore. If y ou have system manager or system supervisor capability , you can restore an y ￿le from a STORE tape, assuming the accoun t and group to whic h the ￿le belongs, and the user who created the ￿le, are de￿ned in the system. If y ou have account manager capabilit y, you can restore any ￿le in your account. To restore ￿les with negative ￿le codes, y ou need Privileged Mode (PM), system supervisor (OP), or System Manager (SM) capability . If you have standard user capability, you can restore only those ￿les in y our logon account.

Lockword requirements

The system manager and system supervisor ma y restore lockword-protected ￿les without specifying the loc kword only when RESTORE is executed during a session. Users without SM or OP capabilit y must always supply the lockword. The exception is AM. If y ou have AM and you are working in your own account, you do not have to supply the lockword. If RESTORE is executed as a job, however, all users lac king SM, OP, or AM capability must supply ￿le lockwords.

When the RUN command is used, the system-de￿ned JCW CIERROR will not be changed even if the RESTORE aborts. When invoking RESTORE through the Command Interpreter (for example, RESTORE *T;@) , the system-de￿ned JCW CIERROR will be set to the v alue 1091 if the RESTORE command aborts for an y reason. Check this value with the SHOWJCW command after RESTORE aborts.

Disk space requiremen ts

RESTORE determines whether su￿cien t disk space remains to restore a ￿le that already exists on the disk. If su￿cien t space remains, RESTORE writes a new copy of the ￿le to the disk before purging the old cop y of the ￿le. The old copy of the ￿le is purged only if the RESTORE operation is successful.

2-224 MPE/iX Commands