home *** CD-ROM | disk | FTP | other *** search
/ World of Shareware - Software Farm 2 / wosw_2.zip / wosw_2 / DATABASE / CONVERTA.ZIP / CONVERT.DOC next >
Text File  |  1990-01-03  |  3KB  |  80 lines

  1.   ──────────────────────────────────────────────────────────
  2.  
  3.    This program is designed to convert an ASCII file that is
  4.    not delimited to a data base file (dbf).
  5.  
  6.    To use this program you must feed in the first 3
  7.    parameters (as listed below) from the DOS prompt.
  8.  
  9.    THIS PROGRAM ASSUMES ALL DATABASE FILES HAVE AN
  10.    AN EXTENSION OF (.DBF).  The name of the ASCII file
  11.    may have any extension.
  12.  
  13.   ──────────────────────────────────────────────────────────
  14.  
  15.    Syntax:
  16.  
  17.    CONVERT ASCIIFile FromDBF ToDBF [HeaderBytes] [Footbytes]
  18.  
  19.        ASCIIFile   - Name of ASCII File to Convert
  20.        FromDBF     - Name of DBF File to use a pattern for
  21.                      reading data from ASCII File
  22.        ToDBF       - Name of DBF File to save converted
  23.                      Data.  This file will be created for
  24.                      you if not found.  If found, records
  25.                      from the ASCII file will be appended to
  26.                      this file.  Therefore this file name
  27.                      may be the same as the FromDBF file
  28.                      name.
  29.        HeaderBytes - Number of Bytes preceeding data in
  30.                      ASCII file.
  31.        Footbytes   - Number of Bytes following the data in
  32.                      the ASCII file.
  33.  
  34.   ──────────────────────────────────────────────────────────
  35.  
  36.    Examples:
  37.  
  38.      CONVERT LIST MASTER DEPT
  39.              │    │      └─ Name of database to contain data
  40.              │    └─ Name of Database to use as a pattern
  41.              └─ Name of ASCII File
  42.  
  43.   ──────────────────────────────────────────────────────────
  44.  
  45.  
  46.      CONVERT TEXT PEOPLE LIST 100 20
  47.              │    │      │    │   │
  48.              │    │      │    │   └─ 20 bytes follow data
  49.              │    │      │    └─ 100 bytes preceed ASCII data
  50.              │    │      └─ Name of database to contain data
  51.              │    └─ Name of Database to use as a pattern
  52.              └─ Name of ASCII File
  53.  
  54.   ──────────────────────────────────────────────────────────
  55.  
  56.    To give you a micro example:
  57.  
  58.      'TEXT' ASCII File contains: 10FRED20JANE30TONY
  59.  
  60.      'TEMPLATE' From DBF File Stru.: Code NUM  2 0
  61.                                      Name CHAR 4
  62.  
  63.      'NAMES' To DBF File does not exist
  64.  
  65.      Syntax to Convert:
  66.  
  67.        CONVERT TEXT TEMPLATE NAMES
  68.  
  69.      Would Create NAMES.DBF containing:
  70.  
  71.        Code Name
  72.        ──── ────
  73.        10   FRED
  74.        20   JANE
  75.        30   TONY
  76.  
  77.   ──────────────────────────────────────────────────────────
  78.   End of Help Text
  79.  
  80.