SuperfilePrepassXtd Preprocess superfiles to allow rebuilds. Short Name CTSBLDX() Type Low-level function Declaration COUNT SuperfilePrepassXtd(pTEXT filnam, pTEXT fileword) Description SuperfilePrepassXtd() processes the superfile in place. Because a superfile holds numerous c-tree Plus files in one physical file, there are complex inter-file relationships that SuperfilePrepassXtd() function cleans up. SuperfilePrepassXtd() empties the index files. Each file in the superfile must now be processed by either the ctrbld utility or RebuildIFile() before it is usable. As is the case with RebuildIFile(), the superfile must be closed prior to calling SuperfilePrepassXtd(). Both SuperfilePrepassXtd() and RebuildIFile() open and close the superfile and members. In single user environments, the fileword parameter, file password, is ignored; i.e., you should pass both parameters, but the second one is ignored. This operation is available as both a function and stand-alone utility. The function call can be used in single-user and client/server applications. The stand-alone implementation, ctsbld, is available only as a single-user utility. Return
See c-tree Plus Error Codes for a complete listing of valid c-tree Plus error values. Example TEXT filnam[64];
scanf("%63s",filnam);
if (SuperfilePrepassXtd(filnam, NULL)) printf("\nError on superfile pre-pass, error = %d on file
%d", isam_err, isam_fil); See also Functions RebuildIFile(), RebuildIFileXtd() and utilities ctsbld, ctrbld. |
|||||||||||||||||||||||||||||||||