CL Command Reference - RGZDLO
CL Command List > RGZDLO Reference
Description:
The Reorganize Document Library Object (RGZDLO) command allows you to reorganize:
. all document library objects (optionally including unfiled mail documents)
. all filed documents not contained in a folder
. all document library objects within a specified folder
. all unfiled mail documents
. an individual document library object, specified by folder name, document name, or system-object-name
When a document is reorganized, unused storage is removed.
Restrictions:
. You must have all object (*ALLOBJ) or security administrator (*SECADM) special authority to specify DLO(*ALL) with either FLR(*ANY) or FLR(*NONE).
. To reorganize a document or folder, you must have *ALLOBJ or *SECADM special authority or you must have at least change (*CHANGE) authority to the document or folder and be enrolled in the system directory.
. To reorganize a document or folder, you must have exclusive access.
. To reorganize unfiled mail documents, all document and folder activity on the system must be stopped
Examples:
Example 1: Reorganizing Folders and Documents
RGZDLO DLO(*ALL) FLR(*ANY)
This command reorganizes all filed folders and documents that exist on the system.
Example 2: Reorganizing Folders, Documents, and Unfiled Mail
RGZDLO DLO(*ALL) FLR(*ANY) MAIL(*YES)
This command reorganizes all filed folders, documents, and all unfiled mail documents that exist on the system.
Example 3: Reorganizing Unfiled Mail Documents
RGZDLO DLO(*ALL) FLR(*ANY) MAIL(*ONLY)
This command reorganizes all unfiled mail documents that exist on the system.
Example 4: Reorganizing Folderless Documents
RGZDLO DLO(*ALL) FLR(*NONE)
This command reorganizes all folderless documents that exist on the system.
Example 5: Reorganizing Documents Within Folders Within Folders
RGZDLO DLO(*ALL) FLR(FLRA)
This command reorganizes all documents within folders contained in folder FLRA, then the folders within folder FLRA are reorganized.
Example 6: Reorganizing an Individual Document or Folder
RGZDLO DLO(*SYSOBJNAM) SYSOBJNAM(DCN1371951)
This command reorganizes the individual document or folder identified by the SYSOBJNAM object.
Example 7: Reorganizing a Document
RGZDLO DLO(DOC1) FLR(FLRA)
This command reorganizes the document named DOC1 in folder FLRA.
Example 8: Reorganizing Documents Not Referenced
RGZDLO DLO(*ALL) FLR(*ANY) DAYS(30)
This command reorganizes all filed documents and folders that have not been referenced in the past 30 days.