Examples

The following examples show command line usage for Archive Directory Maintenance

Register an Archive File from the Command Line

To register an Archive File, specify:

PR0CMND /ARCMAINT OPERATION=REGISTER OUTPUT=X:\RESULTS.TXT PSTDIRECTORY=NEWDIRECTORY
AFFILE=ARCHIVE153 SERVER=OPTIM

GROUP=ORDERS DESCRIPTION=APRIL

The file ARCHIVE153 on Server OPTIM is registered in NEWDIRECTORY, changing the Group to ORDERS and the Description to APRIL with the process report written to a file named X:\RESULTS.TXT.

Remove registration for an Archive File from the Command Line

To remove the entry for an Archive File, specify:

PR0CMND /ARCMAINT 
   OPERATION=UNREGISTER
   OUTPUT=X:\RESULTS.TXT 
   PSTDIRECTORY=OLDDIRECTORY
   GUID=4CABBD4E-4EAB-43B7-9211-D713B7CF21D5
   DELETEFILE+

The Archive File identified by the GUID and its Archive Directory entry in OLDDIRECTORY are removed and the process report written to a file named X:\RESULTS.TXT.

Update a Directory Entry

To update the entry for an archive file, specify:

PR0CMND /ARCMAINT 
   OPERATION=UPDATE 
   OUTPUT=X:\RESULTS.TXT 
   PSTDIRECTORY=NEWDIRECTORY
   AFFILE=ARCHIVE565 PROFILE=BACKUP
   SWAP+

The entry in PSTDIRECTORY NEWDIRECTORY for an Archive File named ARCHIVE565 is updated to change the Storage Profile to BACKUP and swapping the primary Archive File with the duplicate. The process report is written to a file named X:\RESULTS.TXT.