MemCom Reference Manual > MemCom ftn Fortran API > Database Manager (DB) > mcf_db_pack

Name

mcf_db_pack — Pack (de-fragment) database file (Fortran API)

Synopsis

subroutine mcf_db_pack(handle,status)

integer*4 handle
integer*4 status

Description

mcf_db_pack packs the database file identified by handle. All inactive and/or deleted sets are removed, as well as any empty space on the file. The remaining objects are then moved to the beginning of the file and the file is truncated. If no empty space is found mcf_db_pack does not modify the database file.

Parameters

handle

Handle of database file to be packed (input).

status

Status code returned (output). Upon successful completion of the operation, the status value 0 is returned. A negative value is returned if an error has been detected.