FairCom ISAM for C
ctheader - Header Update Utiilty
Operational Model
- Client (ctheader.exe)
- Standalone (ctheader.standalone.exe)
Description
Updates various header fields, allowing for operations such as enabling/disabling particular file features or repairing files with damaged headers.
WARNING: Improper use of this utility can render your file unusable. It should be used rarely and carefully.
Usage
ctheader [-s server] [-u uid][-p pwd] -f filename -m mode -v val
-s: server name (default: FAIRCOMS)
-u: username (default: admin)
-p: password (default: ADMIN)
-f: filename
-m: mode (string). One of the following names:
- ctSERNUMhdr - Set serial number to the specified value
- ctTSTAMPhdr - Set timestamp to the specified value
- ctNUMENThdr - Set number of entries in file to the specified value
- ctTIMEIDhdr - Set creation time stamp used as part of unique ID to the specified value
- ctLOGEOFhdr - Set logical end of file to the specified value
- ctPHYEOFhdr - Set physical end of file to the specified value
- ctDELSTKhdr - Set delete stack pointer to the specified value
- ctUNIQIDhdr - Set unique file ID to the specified value
- ctALIGNhdr - Set file alignment to the specified value
- ctFLAVORhdr - Set file byte ordering to the specified value
- ctXFLSEThdr - Set extended file mode to the lower-order two bytes of the value parameter
- ctXFL_ONhdr - Turn on the lower-order two bytes of value in the extended file mode
- ctXFLOFFhdr - Turn off the lower-order two bytes of value in the extended file mode
- ctEXTSIZhdr - Set file extension size to the specified value
- ctSUSSRLSEGhdr - Suspend the serial segment handling for data file (YES or NO)
- ctREPLICATEhdr - Enable replication for this file (YES or NO)
- ctMAXPARTMBRhdr - Set maximum partitions for this host to the specified value and auto purge as needed
- ctIFIL3hdr - Turn On / Off DEF_MASK_IFIL3 - IFIL resource format change
- ctMXFILZhdr - Set maximum file size to the specified value
- ctLXTSIZhdr - Set large file extent size to the specified value
- ctGUIxIDXENThdr - Turn on/off DEF_MASK_PRTENT (YES/NO)
- ctInsertOnlyhdr - Turn on/off ctInsertOnly (YES/NO)
- ctAugmentedFxdhdr - Turn on/off ctAugmentedFxd (YES/NO)
- ctADD2ENDhdr - Turn on/off ctADD2END (YES/NO)
-v: Update header value (integer in decimal format)
Example
Enable replication:
ctheader -f myfile.dat -m ctREPLICATEhdr -v 1