Here's a sample build of the database.
1. Start with a simple record-per-person text file. You will have to write
a description of the field position to field number mapping using the field
numbers in the configuration file. A sample file is EM411.TXT and is
described by EM411.QI_MAKE using the field descriptions in DATABASE.CNF.
[file EM411.TXT]
TANNER,BRUCE G TANNER COMPUTER SERVICES SR SYSTEMS PROG 0596
2. Run QI_MAKE to format as a record-per-field file, DATABASE.DAT:
QI_MAKE reads EM411.TXT and EM411.QI_MAKE and writes DATABASE.DAT.
$ QI_MAKE := $device:[path]QI_MAKE
$ QI_MAKE EM411.TXT DATABASE.DAT
[file DATABASE.DAT]
8110000101000Tanner Bruce G
[email protected]
8110000131000Computer Services
8110000132000Sr Systems Prog
8110000110000(310) 860-2451 ext 0596
8110000130000Cerritos College
8110000190000person
3. Run QI_ADD_SOUNDEX to add the soundex information to the database.
$ QI_ADD_SOUNDEX := $device:[path]QI_ADD_SOUNDEX
$ QI_ADD_SOUNDEX DATABASE.DAT
4. Run QI_BUILD to create the .INDEX and .DATA files:
BUILD reads DATABASE.DAT and DATABASE.CNF (Not CSO_CONFIG) and creates
DATABASE.INDEX and DATABASE.DATA.
$ QI_BUILD := $device:[path]QI_BUILD
$ QI_BUILD DATABASE.DAT /DATA
5. Point the CSO logical names to the files:
$ DEFINE /SYSTEM/EXEC CSO_CONFIG device:[path]DATABASE.CNF
$ DEFINE /SYSTEM/EXEC CSO_INDEX device:[path]DATABASE.INDEX
$ DEFINE /SYSTEM/EXEC CSO_DATA device:[path]DATABASE.DATA
$ DEFINE /SYSTEM/EXEC CSO_LOG device:[path]QI.LOG
6. Set up the QI server, as described in WHAT.TXT.
7. Set up a gopher link to the QI server:
Name=Phone Book
Type=2
Path=
Port=105
Host=+
8. Run Gopher or PH (available from ftp.cso.uiuc.edu) or telnet to query the
server:
$ telnet /port=105 cerritos.edu
Trying... Connected to CERRITOS.EDU.
query tanner
-200:1: name: Tanner Bruce G
-200:1: email:
[email protected]
-200:1: phone: (310) 860-2451 ext 0596
-200:1: college: Cerritos College
-200:1: department: Computer Services
-200:1: title: Sr Systems Prog
200:Ok.
quit
200:Bye!
Connection closed by Foreign Host