Renaming documents when restoring
You can use the RENAME parameter to give documents a different name when they are restored. You can also place them in a different folder by using the RSTFLR parameter.
If renaming a document when it is restored would result in a duplicate name in a folder, the system does the following actions:
- If ALWOBJDIF(*NONE) is specified, the document is not restored.
- If ALWOBJDIF(*ALL) is specified, the document is restored and replaces the existing document in the folder.
You can specify more than one value for the RENAME parameter. The system matches the RENAME values with the DLO values until it runs out of values for one or the other. Assume that you specify the following command:
RSTDLO DLO(A B C D) SAVFLR(X) RENAME(J K L) RSTFLR(Y)
After the restore operation, you have the following documents:
- Document J in folder Y
- Document K in folder Y
- Document L in folder Y
- Document D in folder Y