Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
The Restore Document Library Object (RSTDLO) command restores documents, folders, and distribution objects (mail).
This command can be used to restore the documents and folders if the document was or was not freed by the Save Document Library Object (SAVDLO) command, or to restore documents and folders that were deleted by the Delete Document Library Object (DLTDLO) command.
Restoring a document either replaces the existing document content and control information if the document exists on the system, or it adds new document content and control information if the document does not exist.
For a filed document (electronic mail or a document stored in the document library), the document and folder name of the document object on the media must be the same as the document name and folder name of the document on the system, unless the document is renamed and put in a different folder during the restore operation.
Note: Folder names must match exactly for restored folders. All objects that are not in use are restored from the folder on the media or in the save file to the existing folder. Restoring a folder creates a new folder object if the folder does not exist and adds to this new folder all objects saved with the folder on the media or in the save file. If the folder exists, any document or folder objects that do not exist within it are created. The existing documents are replaced with the version from the media.
For a filed document restored on the system whose owner is not known to the system or is not enrolled in the system distribution directory, the user profile of the default owner (QDFTOWN) becomes the owner of the document or folder.
The creation date of a document does not change if the document exists. If the document does not exist, the creation date is set to the date on which the document is created.
The security does not change if a document or folder exists on the system where it is to be restored. If the document or folder does not exist, public authority, authorization list, and personal status are restored; however, all other private document and folder authorities are not restored. These authorities must be established again by the owner.
If a document is restored that had a mail log entry when it was saved, the mail log entry is restored if the distribution tracking object exists on the system. If the distribution tracking object does not exist on the system, a message is sent saying that the document was restored without a mail log entry.
If this command ends abnormally, objects are left on the system in an unknown state and cannot be found in a library. This can happen if a power failure occurs when this command is run. The Reclaim Storage (RCLSTG) command can be used to clean up the auxiliary storage and delete most of those objects from the system; however, unknown mail objects are not cleaned up with the RCLSTG command.
When a set of documents and folders are restored, all documents and folders in the set must exist in the same tape, optical volume, or save file.
If a document exists in more than one tape file, the user can control which document is restored by specifying the media file using the sequence number or label parameter. If more than one version of the document exists, the SAVDATE and SAVTIME parameters can also be used to select the correct document.
When text search services are on the system and the user restores a document library object, the text search index for the object is restored.
Restrictions:
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
DLO | Document library object | Single values: *ALL, *SYSOBJNAM, *MAIL Other values (up to 300 repetitions): Character value |
Required, Positional 1 |
SAVFLR | Saved folder | Single values: *ANY, *NONE Other values (up to 300 repetitions): Character value |
Optional |
RENAME | New object name | Single values: *SAME Other values (up to 300 repetitions): Character value |
Optional |
RSTFLR | Restore into folder | Character value, *SAME | Optional |
DEV | Device | Single values: *SAVF Other values (up to 4 repetitions): Name |
Required, Positional 2 |
SYSOBJNAM | System object name | Values (up to 300 repetitions): Name, *NONE | Optional |
VOL | Volume identifier | Single values: *MOUNTED Other values (up to 75 repetitions): Character value |
Optional |
SEQNBR | Sequence number | Single values: *SEARCH Other values: Element list |
Optional |
Element 1: Beginning sequence number | 1-16777215 | ||
Element 2: Ending sequence number | 1-16777215, *ONLY | ||
ENDOPT | End of media option | *REWIND, *LEAVE, *UNLOAD | Optional |
LABEL | Label | Character value, *GEN | Optional |
SAVF | Save file | Qualified object name | Optional |
Qualifier 1: Save file | Name | ||
Qualifier 2: Library | Name, *LIBL, *CURLIB | ||
OPTFILE | Optical file | Path name, * | Optional |
NEWOBJ | Object name generation | *SAME, *NEW | Optional |
SAVDATE | Date when saved | Date | Optional |
SAVTIME | Time when saved | Time | Optional |
ALWOBJDIF | Allow object differences | *NONE, *ALL | Optional |
SAVASP | Saved from ASP number | 1-32, *ANY | Optional |
RSTASP | Restore to ASP number | 1-32, *SAVASP | Optional |
OUTPUT | Output | *NONE, *PRINT, *OUTFILE | Optional |
OUTFILE | File to receive output | Qualified object name | Optional |
Qualifier 1: File to receive output | Name | ||
Qualifier 2: Library | Name, *LIBL, *CURLIB | ||
OUTMBR | Output member options | Element list | Optional |
Element 1: Member to receive output | Name, *FIRST | ||
Element 2: Replace or add records | *REPLACE, *ADD |
Top |
Specifies the document library objects to be restored.
This is a required parameter.
Single values
Other values (up to 300 repetitions)
Top |
Specifies the name of the folder on the media from which the documents and folders are restored.
Single values
Other values (up to 300 repetitions)
Top |
Specifies the new user-assigned name for the restored document.
Single values
Other values (up to 300 repetitions)
Top |
Specifies the name of the folder in which the restored folders and documents to be restored will be placed. The folder must exist on the system or when *ALL is specified for the Document library object (DLO) parameter, the saved folder must exist on the media.
Top |
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.
This is a required parameter.
Single values
Other values
Top |
Specifies the system object names of the documents to be restored if *SYSOBJNAM is specified for the Document library object (DLO) parameter.
Single values
Other values (up to 300 repetitions)
Top |
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.
Single values
Note: This value cannot be specified when using an optical media library device.
Other values (up to 75 repetitions)
Top |
Specifies the sequence numbers of the tape files used for the restore operation.
Note:When restoring document library objects (DLOs) from more than one auxiliary storage pool (ASP), a beginning and ending sequence number must be specified. The beginning and ending sequence numbers were shown in the completion message for the SAVDLO command used to create the tape media files. Or use the Display Tape (DSPTAP) command to find the sequence numbers of the QDOC and QDOCnnnn files, where nnnn is the ASP number.
Single values
Element 1: Beginning sequence number
Element 2: Ending sequence number
Top |
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.
Note: 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.
Top |
Specifies the file label used to find the file that was written onto the media during the save operation.
Top |
Specifies the save file used to restore the data.
Note: A value must be specified for this parameter if *SAVF is specified for the Device (DEV) parameter.
Qualifier 1: Save file
Qualifier 2: Library
Top |
Specifies the path name of the optical file that is used for the restore operation, beginning with the root directory of the volume.
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.
Top |
Specifies whether a new library-assigned name and system object name are generated for the folders and documents that are restored.
Top |
Specifies the date on which the document library objects were saved. If more than one version of the document library objects exist on the media, use this parameter to identify which version of the document library objects to restore. The date must be specified in the job date format. If separators are used, the value must be enclosed in apostrophes. If the SAVDATE parameter is not specified, the version of the documents and folders to be restored will be the first version found on the volume or the version found with the specified file label.
Top |
Specifies the time when the document library objects were saved. If more than one version of the document library objects exist on the media with the same value for the date saved, use this parameter to identify which version of the document library objects to restore. Specify the time as a 6-digit value, in the format hours, minutes, seconds (hhmmss). If separators are used, the value must be enclosed in apostrophes ('hh:mm:ss'). If a volume identifier is specified, but the Time when saved (SAVTIME) parameter is not specified, the version of the document library objects to be restored will be the first version found on the volume or the first version found with the specified file label.
This parameter is valid only if the Date when saved (SAVDATE) parameter is specified also.
Top |
Specifies whether the following differences encountered during a restore operation are allowed.
The ALWOBJDIF parameter can be used to allow an object to be restored whose owner or object name on the system is different than on the media used for the restore operation. By specifying the *ALL special value, an object with a different name is restored to the name on the media, while an object with a different owner keeps the owner name from the system instead of the media.
Note: To use this parameter, you need all object (*ALLOBJ) authority.
Notes:
Top |
Specifies the number of the auxiliary storage pool (ASP) on media from which saved documents and folders are to be restored.
Note:When restoring document library objects (DLOs) from more than one ASP, the sequence number (SEQNBR) parameter must be specified.
Top |
Specifies the number of the auxiliary storage pool (ASP) on media in which restored documents and folders are to be placed.
Top |
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.
Note: You must specify a database file name for the OUTFILE parameter when OUTPUT(*OUTFILE) is specified.
Top |
Specifies the qualified name of the database file to which the information about the object is directed when *OUTFILE is specified for the Output (OUTPUT) 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 QAOJRSTO in QSYS with the format name QOJRST as a model.
Qualifier 1: File to receive output
Qualifier 2: Library
Top |
Specifies the name of the database file member to which the output is directed when *OUTFILE is specified for the Output (OUTPUT) parameter.
Element 1: Member to receive output
If the member exists, you can add records to the end of the existing member or clear the existing member and add the records.
Element 2: Replace or add records
Top |
Example 1: Restoring Documents with System Object Names
RSTDLO DLO(*SYSOBJNAM) DEV(TAP01) SYSOBJNAM(HZ83B55219)
This command restores the document named HZ83B55219 from the tape unit TAP01.
Example 2: Restoring Documents from a Save Folder
RSTDLO DLO(A) DEV(TAP01) SAVFLR(X)
This command restores the document named A from folder X.
Example 3: Restoring All Documents
RSTDLO DLO(*ALL) DEV(TAP01)
This command restores all documents and folders that are on the first tape file on tape unit TAP01.
Example 4: Restoring a Folder Saved from the System ASP to a User ASP
RSTDLO DLO(*ALL) FLR(Y) SAVASP(1) RSTASP(2)
This command restores folder Y, which was saved from ASP 1, to user ASP 2. Folder Y must be deleted from ASP 1 before it can be restored to ASP 2.
Example 5: Creating New Library-Assigned Name
RSTDLO DLO(*SYSOBJNAM) DEV(TAP01) SYSOBJNAM(HZ83B55219) NEWOBJ(*NEW)
This command restores document HZ83B55219 from tape unit TAP01 and gives it a new library-assigned name and a new system object name.
Example 6: Renaming Documents
RSTDLO DLO(A B) DEV(TAP01) SAVFLR(C) RENAME(Y Z) RSTFLR(X)
This command restores documents A and B from within folder C. Document A is renamed to Y and document B is renamed to Z. The command then puts them in folder X.
Example 7: Specifying Sequence Numbers
RSTDLO DLO(*ALL) DEV(tape-device-name) SAVFLR(A) SEQNBR(1 3) LABEL(*GEN)
This command restores all of folder A from tape files with the sequence numbers 1, 2, and 3, and the label QDOC or QDOCxxxx.
Example 8: Specifying Allowed Differences
RSTDLO DLO(A) DEV(TAP01) SAVFLR(X) ALWOBJDIF(*ALL)
This command restores document A from folder X. If document A in folder X exists on the system and the owner of the document on the system does not match the owner of the document being restored, the document is restored and the owner of the document on the system remains unchanged.
Example 9: Reporting Information about Objects Restored and Not Restored
RSTDLO DLO(*ALL) DEV(TAP01) OUTPUT(*OUTFILE) OUTFILE(INFO92) OUTMBR(FOURQT *ADD)
This command restores all documents and folders from the tape device TAP01. A list reporting information about objects restored and objects not restored is directed to the output file INFO92. The output is received in the member FOURQT as an addition to existing information in the member.
Top |
*ESCAPE Messages
Top |