Use the following syntax for Archive Directory Maintenance.
Commands use the following structure. Enter the command and all parameters on a single line.
PR0CMND /ARCMAINT OPERATION={ REGISTER | UNREGISTER | UPDATE | VALIDATE} [ OUTPUT=filename[ + ] ] [ PST=optimdirectory]
You can enter parameters with the command on the command line, or you can enter these parameters into a text file (called a parameter file).
A parameter file can be reused whenever you need to run a task. You can also generate a parameter file programmatically, which allows you to automate processes.
You can enter parameters for more than one process into a parameter file. This allows you to run multiple processes by entering a single command on the command line. Enter the parameters for each process on a separate line of the parameter file.
AFFILE=[ “ ]arc file name.af[ ” ] [ SERVER={ arcservername | (local) } ] [ GROUP={ groupidentifier | NONE } ] [ DESC={ description | NONE } ] [ AFXFILE={ [ “ ]idx file name.afx[ ” ] | NONE } ] [ PROFILE={ storeprofilename | NONE } ] [ OVERWRITE{ + | – } ]
{ AFFILE=[ “ ]arc file name.af[ ” ] [ SERVER={ arcservername | (local) } ] | n | GUID=n } [ DELETEFILE { + | – } ]
{ AFFILE=[ “ ]arc file name.af[ ” ] [ SERVER={ arcservername | (local) } ] | AFID=n | GUID=n } [ GROUP={ groupidentifier | NONE }] [ DESC={ description | NONE } ] [ AFXFILE={ [ “ ]idx file name.afx[ ” ] | NONE } ] [ PROFILE={ profilename | NONE } ] [ DUPLICATE=[ “ ]arc file name.af[ ” ] | REPLACEPRIMARY{ + | - } | REMOVEDUPLICATE{ + | - } | SWAP{ + | - } ]