Next / Previous / Contents / Shipman's homepage

7.2. The dbfstruct script: Show dBASE V file structure

To examine the structure of a dBASE V .dbf file, use this command:

dbfstruct filename.dbf

Here is an example of this program operating on a version of Shipstat.dbf:

File name            shipstat.dbf
Last update          2004-09-29
Number of records    1004
Record length        117
Number of fields     9

  Name         Type Length Decimals
  ----         ---- ------ --------
  REGION          C    1       0
  STA             N    5       0
  LOC             C    4       0
  NAME            C   30       0
  STATION         C    4       0
  STATE           C    2       0
  WORKPHONE       C   19       0
  FIRSTNAME       C   30       0
  LASTNAME        C   21       0