Use file maintenance to validate an archive, archive index, or an extract file. The validation process determines whether a file is usable and uncorrupted. Validating an archive file, automatically validates any existing index file. If you validate an archive file that is not registered, the report contains a notation to that effect.
The command file contains parameters that identify the files to be validated. A command can appear several times in a command file. A single command can span multiple lines for ease of maintenance (except where noted otherwise). A group of commands followed by a RUN command represents a “process block.” Except for the RUN command, all commands in a process block can appear in any order.
A command file can contain one or more process blocks in the following format:
[// comment ]
[ OPTIMDIR optimdirectory ]
[ AF | XF | { severname | (local) } filename1[,filenamen ]
[ COLLECTION collection1[,collectionn]]
[ AFEXCLUDE archivefilename1[,archivefilenamen]]
[ LEVEL 1 ]
[ ONERROR{ CONTINUE | QUITPROCESS | QUITALL }]
RUN VALIDATE
PR0CMND /FMF
OUTPUT=C:\RTDATA\filemaint.txt
@command.txt
The following is an example
of the contents of a command file used by the file maintenance process.//This is the first block.
OPTIMDIR OPTIMDIR1
AF OPTIMSVR1 PAYROLL%.AF,GENERAL_LEDGER.AF
LEVEL 1
RUN VALIDATE
//This begins the second block.
OPTIMDIR OPTIMDIR2
AF (LOCAL) ACCOUNTS_PAYABLE.AF,ACCOUNTS_RECEIVABLE.AF
RUN VALIDATE
//This begins the third block.
XF (LOCAL) PAYABLE.XF,C:/OPTIM/DATA/ACCOUNTS_RECEIVABLE.XF
LEVEL 1
ONERROR CONTINUE
RUN VALIDATE
//This is the fourth block.
OPTIMDIR OPTIMDIR1
AF OPTIMSVR1 PAYROLL%.AF,GENERAL_LEDGER.AF
COLLECTION PAYROLL.COLL1, EMPLOYEE.COLL%
AFEXCLUDE ACCOUNTS_PAYABLE.AF,ACCOUNTS_RECEIVABLE.AF
RUN VALIDATE
The following is a sample process report.
File Maintenance Facility (FMF) Process Report
RESULTS Created on 2/21/2013 at 17:13:43
Command Line Parameters @C:\Optim\Data\FMFFileValRun.txt output=ArchiveOut
.txt
Input File C:\Optim\Data\FMFFileValRun.txt
Process Output ArchiveOut.txt
Process Status 1 error, no warnings
Process Summary
Files processed 1
Index files processed 0
Process 1 of 1
------- - -- -
Process Commands:
1) OPTIMDIR DB2DIR
2) AF (local) SampleArchive60.AF,DB2VAL1.AF
3) ONERROR CONTINUE
4) RUN VALIDATE
Entry 1 of 2
File Name C:\Optim\Data\SampleArchive60.AF
Server (Local)
Index File Name (None)
Process Status no errors, no warnings
AD Name (Local) Request XXXXXXX.TESTFVAL
Validation Level 1 Security (None)
File Creation Date 2/20/2013
Validation Summary:
Header/Trailer Passed Archive Index (None)
Table/Column Passed
Entry 2 of 2
File Name C:\Optim\Data\DB2VAL1.AF
Server (Local)
Index File Name (None)
Process Status 1 error, no warnings
FMF Process Errors
Header/Trailer validation failed for the specified source file,
C:\Optim\Data\DB2VAL1.AF. This file may have been corrupted.
AD Name (Unavailable) Request (Unavailable)
Validation Level 1 Security (Unavailable)
File Creation Date (Unavailable)
Validation Summary:
Header/Trailer Failed Archive Index (None)
Table/Column (None)