home *** CD-ROM | disk | FTP | other *** search
/ Media Share 9 / MEDIASHARE_09.ISO / dbase / qrdb38.zip / QRDB.DOC < prev    next >
Text File  |  1993-07-01  |  44KB  |  883 lines

  1.  
  2.  
  3.  
  4.                            QRDB  Vers 3.8                 1 July 93
  5.                       Mountain Retreat Software
  6.  
  7.                                 QRDB
  8.                 (c) Copyright 1992 by John Jamieson
  9.                          All Rights Reserved
  10.  
  11.  
  12. Intro:
  13.  
  14.   QRDB/QRDBMgr is a Data Base system for BBS's that use DorInfo1.Def.
  15.   QRDB is a multi-node compatable BBS Data Base door and QRDBMGR is the
  16.   Data Base Manager. Although QRDB was designed to be used as a BBS door
  17.   it can be used by users without a BBS if needed. A BBS is not required
  18.   in order to run the program, it will run in local mode. QRDB requires
  19.   400k of memory.
  20.  
  21.  
  22. QRDB/QRDBMgr offers three types of Data Base.
  23.  
  24.   Type 1 will import any text file in which the data is layed out in
  25.   columns. The imported Data Base can then be made available to BBS
  26.   users for searches or sorted list displays. Up to five keys can be
  27.   designated making five sorted lists available to the user.  This Type
  28.   1 Data Base is not editable and a Data Record is limited to 80
  29.   characters. An example of a file suitable for import is the Darwin BBS
  30.   listing.
  31.  
  32.   Type 2 is a build from scratch Data Base. The user can Add, Edit and
  33.   Delete records in the Type 2 Data Base. Read, Write and Edit/Del
  34.   levels are established by the Sysop. A log is maintained of all
  35.   Additions, Edits and Deletes made by users. This type 2 Data Base can
  36.   contain up to 25 fields per Record with a maximum of 5 Key fields. 5
  37.   display lines with 5 fields per line max.  Fields can be designated as
  38.   input optional or input required. QRDB can import comma delimited
  39.   files into the type 2 Data Base.
  40.  
  41.   Type 3 will display data in dBase .DBF data files and .DBT memo files.
  42.   The dBase Data can then be made available to BBS users for searches or
  43.   sorted list displays. Up to five keys can be designated making five
  44.   sorted lists available to the user. The user can Add, Edit and Delete
  45.   records in the Type 3 Data Base. Read, Write and Edit/Del levels are
  46.   established by the Sysop. A log is maintained of all Additions, Edits
  47.   and Deletes made by users. All fields except the Memo's are searched
  48.   when using the Search function.
  49.   QRDB does not use dBase Index files, it uses it's own indexing system.
  50.   QRDB LIMITS on dBase files are as follows. QRDB will only handle
  51.   dBase records with 20 or less fields. The number of memo's is limited
  52.   to 3 per record and the lines in a memo are limited to 20 with a
  53.   maximum line length of 76 characters.
  54.  
  55. User Access to data
  56.  
  57.   Access to files is controlled by Levels established for each DataBase.
  58.   Read, Write and Edit/Delete levels are seperatly controlled.
  59.   In addition to access provided under level control, a user is given
  60.   access to any record that he/she creates. This Record access is
  61.   controled by the index files identified *O.IDX. This feature can be
  62.   disabled by deleting the *O.IDX file after the user exits QRDB. QRDB
  63.   will build a new empty *O.IDX if it dosen't find one.
  64.   An example of the posibilities:
  65.   A user can be given Add, Edit/Delete access and No Read access. In
  66.   this situation a user database, that only the Sysop or CoSysops with
  67.   read access would have access to all the records, could be built and
  68.   maintained by users.
  69.  
  70. When run in local mode or stand-alone full access to all features is
  71. given and levels do not apply.
  72.  
  73. The advantages/disadvantages of each type are as follows:
  74.     Type 1: Imports text layed out in columns.
  75.             Only displays, no edits.
  76.             User Read Access controlled by security level
  77.  
  78.     Type 2: Data base can be built on line.
  79.             Imports comma delimited files
  80.             Exports to comma delimited files
  81.             User access to Read, Add, Edit and/or Delete controlled
  82.             by user Level
  83.  
  84.  
  85.     Type 3: Data base uses dBase .DBF and .DBT files
  86.             Checks date entries for validity
  87.             Checks numeric entries
  88.             dBase Memo capability, a great feature
  89.             Requires dBase Compatable files
  90.             User access to Read, Add, Edit and/or Delete controlled
  91.                 by user Level
  92.  
  93.             dBase Compatable files can be created with the Shareware
  94.             utility dBuddy. Additional dBuddy info is below.
  95.  
  96.  
  97. Example QRDB main Menu and Status Bar:
  98.  
  99. ╔════════════════════════════════════════════════════════════════════════╗
  100. ║            ░░▒▒▓▓██  Q R D B    M A I N    M E N U  ██▓▓▒▒░░           ║
  101. ║                                                                        ║
  102. ║  ░▒              Mountain Retreat DataBase Selection               ▒░  ║
  103. ╠════════════════════════════════════════════════════════════════════════╣
  104. ║  A    Fido Net BBS's in North America                                  ║
  105. ║  B    Fido Net BBS's Outside N. America                                ║
  106. ║  C    Darwin National BBS List                                         ║
  107. ║  D    System User's                                                    ║
  108. ║  E    WildCat BBS's in the North America                               ║
  109. ║  F    User Generated List of Area Code 408 BBS's                       ║
  110. ║  G    Hardware/Software Industry Support BBS's                         ║
  111. ║  H    User Generated List of Out of Area Boards                        ║
  112. ║  I    Computer Hwd/SW Suppliers support (Not BBS's)                    ║
  113. ║                                                                        ║
  114. ║  ?    Help                                                             ║
  115. ║  X    Exit QRDB                                                        ║
  116. ╠════════════════════════════════════════════════════════════════════════╣
  117. ║      QRDB Door - Mt. Retreat Software - Support BBS (408)335-4595      ║
  118. ╚════════════════════════════════════════════════════════════════════════╝
  119.  Selection:
  120.  
  121. ┌───────────────────────────────────────────────────────────────────────────┐
  122. │John Jamieson                 Level=100     Baud=2400        Graphics=On   │
  123. │Felton, Ca                    Min's Left=67                  Alt-H= Hangup │
  124. └───────────────────────────────────────────────────────────────────────────┘
  125.  
  126.  
  127.  
  128. Quick Start:
  129.  
  130.     a. To Run QRDB add the Environment Variable SET QRDB=C:\QRDB, set it
  131.        to whatever directory QRDB is located in. If the Environment
  132.        Variable is not set you must run QRDB from the QRDB directory.
  133.        QRDB uses the Environment Variable to locate the the QRDB data
  134.        files and key file, if they are not found you will get the error
  135.        message "QRDB.KEY not found or Corrupt.
  136.     b. QRDB requires 400k of memory to run. If your BBS is capable of
  137.        swaping to EMS or disk when running a door use that option.
  138.        Most likely you won't have enough memory to keep the BBS in
  139.        memory and still have 400k for QRDB. Most Systems have a batch
  140.        file/errorlevel system that will free enough memory for QRDB.
  141.     c. If Running MultiNode, run QRDB from a different directory for
  142.        each node. Example C:\BBS\Node0, C:BBS\Node1, etc. QRDB needs
  143.        to find either Door.Sys or DorInfo1.Def in the node directory.
  144.        DorInfo2.Def won't do if your system uses a DorInfo other than
  145.        1, rename it. QRDB expects to find either Door.Sys or DorInfo1.Def
  146.        in the directory it is run from.
  147.     d. QRDB defaults to Local mode, without a status line, if it can't
  148.        find DorInfo1.Def or Door.Sys. It will also run in Local mode,
  149.        but with a status line if the baud rate it finds in DorInfo1.Def
  150.        or Door.Sys is 0.
  151.     e. The Main menu can be bypassed. A couple of reasons for bypassing
  152.        are; if only one data base is to be included or the sysop would
  153.        rather use the BBS menus to access the data bases. Bypassing is
  154.        accomplished by executing QRDB with the name of the CL file as a
  155.        command line parameter. Example C:\QRDB\QRDB.EXE CHAPLIN.3CL
  156.        or if running stand-alone local mode  QRDB.EXE CHAPLIN.3CL. To
  157.        run in stand-alone local mode, but monochrome use  QRDB.EXE /M
  158.        CHAPLIN.3CL.
  159.     f. A few sample Data Bases are included in the package. Just place
  160.        the QRDB package of files in their own directory and run QRDB or
  161.        QRDB /M for Local in monochrome, and follow the Prompts. The
  162.        Darwin Data Base related files included with the package contains
  163.        a setup only, no data, it's use will be discussed later. Feel
  164.        free to use any of the examples on your BBS or delete them using
  165.        the QRDBMgr or DOS. It is suggested that you review the Example
  166.        setups prior to deleting them. Run the QRDBMgr and press F2 to
  167.        call up the control file editor. The editor can be used to review
  168.        the setups.
  169.     g. If you are running QuickBBS or RA
  170.        After seting the Environment variable,  create a QuickBBS/RA type
  171.        7 menu type and in the Optional data field just place the command
  172.        C:\QRDB\QRDB.EXE *M  that's all their is to it. To bypass the
  173.        QRDB main menu use  C:\QRDB\QRDB.EXE CHAPLIN.3CL *M
  174.        (*M is a QuickBBS/RA option telling the BBS to swap to EMS or Disk)
  175.     h. Maximus or Virtual BBS check the files Maximus.BBS or Virtual.BBS
  176.        for additional info.
  177.     I. Other systems,  jot down your installation procedure and send it
  178.        to me. I'll include it in the next release of QRDB. It could save
  179.        another sysop a lot of headaches.
  180.  
  181.  
  182.  
  183. Files:
  184.  
  185.   A set of files will be created for each Data Base
  186.    .1CL,.2CL or .3CL  Control file; a Type 1,2 or 3
  187.    .Dat     Data file;  for type 1 & 2 only, type 3 uses your.DBF file
  188.    .IDX     Index file; 1 to 5 as specified during setup
  189.  
  190.   A QRDB general help file will be displayed from the main menu, if you
  191.   name it QRDB.HLP. You can also create a .HLP file for each Data Base by
  192.   using the same name as your Data Base. If a help file is found it will
  193.   be offered to the user in the QRDB menus. .HLP files are just text
  194.   files.
  195.  
  196.   When assigning file names you will be allowed 7 characters instead of
  197.   the usual 8. QRDB needs that 8th character.
  198.  
  199.   A Data Base consisting of a set of the above files is a stand alone
  200.   package. It can be copied/moved to another BBS that uses QRDB or it
  201.   can be deleted from your QRDB directory. QRDBMgr has a delete function,
  202.   it's there only for convenience DOS is all that is needed.
  203.  
  204.   The files provided with the package are the following :
  205.  
  206. QRDBMGR.EXE     The QRDB Manager used to set up data bases for QRDB
  207. QRDB.EXE        The QRDB BBS Door
  208. QRDB_FOS.EXE    The QRDB BBS Door Fossil Version
  209. QRDB.TTL        A file that stores the title you give to the QRDB Main Menu
  210. QRDB.DOC        This File
  211. QRDB.KEY        Key to QRDB operation
  212. QRDB.HLP        A Sample general help file
  213.  
  214.      ** The following files are example files and can
  215.          be deleted when you are finished with them.
  216.  
  217. SUPPORT.1CL     Type 1 Sample Control File  (List of Support BBS's)
  218. SUPPORT.DAT     Type 1 Sample Data File
  219. SUPPORT.HLP     Support Data Base Help File (Text)
  220. SUPPORT1.IDX    Type 1 Sample Index file #1
  221. SUPPORT2.IDX    Type 1 Sample Index file #2
  222. SUPPORT.TXT     Text file used in the creation of the Type 1 Sample
  223.  
  224. BBSLIST.2CL     Type 2 Sample Control File (User generated BBS List)
  225. BBSLIST.DAT     Type 2 Sample Data File
  226. BBSLIST.HLP     BBSList Data Base Help File (Text)
  227. BBSLIST1.IDX    Type 2 Sample Index file #1
  228. BBS.LST         A sample comma delimited file for import into
  229.                  the BBSLIST data base
  230.  
  231. WGUIDE.2CL      Type 2 Sample Control File (Wine Guide)
  232. WGUIDE.DAT      Type 2 Sample Data File
  233. WGUIDE.HLP      WGuide Data Base Help File (Text)
  234. WGUIDE1.IDX     Type 2 Sample Index file
  235. WGX.CTL         Control file for Export of WGuide to Comma Delimited file
  236. WGX.TXT         Comma Delimited Exported database
  237.  
  238. USERDAT.2CL     Type 2 Sample Control File (User DataBase)
  239. USERDAT.DAT     Type 2 Sample Data File
  240. USERDAT1.IDX    Type 2 Sample Index
  241.  
  242. USERINF  3CL    Type 3 Sample Control File (User DataBase as above but dB3)
  243. USERINF  DBF    dBase .DBF file used by QRDB
  244. USERINF  DBT    dBase .DBT Memo file used by QRDB
  245. USERINF1 IDX    Type 3 Sample Index
  246.  
  247. CHAPLIN.3CL     Type 3 Sample Control File  (Chaplin dBase Data Base)
  248. CHAPLIN.DBF     dBase .DBF file used by QRDB
  249. CHAPLIN.DBT     dBase .DBT Memo file used by QRDB
  250. CHAPLIN.HLP     Chaplin Data Base Help File (Text)
  251. CHAPLIN1.IDX    Type 3 Sample Index file
  252.  
  253. USBBS.1CL       Type 1 Sample Control File (Setup for Darwin USBBS list)
  254. USBBS.DAT       Empty Type1 Sample Data File
  255. USBBS.HLP       USBBS Data Base Help File (Text)
  256. USBBS1.IDX      Type 1 Sample Index file #1
  257. USBBS2.IDX      Type 1 Sample Index file #2
  258. USBBS3.IDX      Type 1 Sample Index file #3
  259.  
  260. MAXIMUS.BBS     Info on setting up under Maximus.BBS
  261. VIRTUAL.BBS     Info on setting up under Virtual.BBS
  262.  
  263. The complete chaplin dBase package can be download from Mountain Retreat
  264. only the .DBF & .DBT file are included here. The Complete package
  265. includes Chaplin.FMT. Since QRDB only reads .DBF and .DBT files I didn't
  266. include the conplete package.
  267.  
  268. The files provided will appear in the QRDB main menu as follows:
  269.  
  270. ╔════════════════════════════════════════════════════════════════════════╗
  271. ║            ░░▒▒▓▓██  Q R D B    M A I N    M E N U  ██▓▓▒▒░░           ║
  272. ║                                                                        ║
  273. ║  ░▒                  Your BBS DataBase Selection                   ▒░  ║
  274. ╠════════════════════════════════════════════════════════════════════════╣
  275. ║  A    Computer Hardware/Software Support                               ║
  276. ║  B    Darwin National BBS List                                         ║
  277. ║  C    User List of Favorite BBS's                                      ║
  278. ║  D    User Data Base                                                   ║
  279. ║  E    Central California Winery Guide                                  ║
  280. ║  F    A Data Base of Chaplin Movies                                    ║
  281. ║  G    DataBase of BBS user info                                        ║
  282. ║                                                                        ║
  283. ║  ?    Help                                                             ║
  284. ║  X    Exit QRDB                                                        ║
  285. ╠════════════════════════════════════════════════════════════════════════╣
  286. ║      QRDB Door - Mt. Retreat Software - Support BBS (408)335-4595      ║
  287. ╚════════════════════════════════════════════════════════════════════════╝
  288.  Selection:
  289.  
  290.   In the menu above the "User Data Base" is a type 2 data base and
  291.   "DataBase of BBS user info" is a similar data base useing a type
  292.   3 data base with memo's
  293.  
  294.  
  295. Trouble shooting the QRDB door installation:
  296.  
  297.   The Status bar can be an aid in trouble shooting the door installation.
  298.   a.  If you get the Error message QRDB.Key not found or Corrupt, make
  299.       sure you have the environment variable set, before looking for
  300.       other problems. Example QRDB=C:\QRDBDIR set it to the directory
  301.       that QRDB is located in.
  302.   b.  No status bar indicates that the DorInfo1.Def file was not found and
  303.       QRDB is running in local mode.
  304.   c.  A status bar with a Baud rate other than 0 indicates the DorInfo1.Def
  305.       file has been read, QRDB has Config and user info and is running as
  306.       a door.
  307.   d.  If the status bar shows a baud rate of 0 then DorInfo1.Def has been
  308.       Read and QRDB is running in local mode.
  309.   e.  If double spaceing or blank lines in a occure in records when
  310.       displaying it's probably due to, too much data being placed on a
  311.       line. Go back to the QRDBMgr and do some rearranging.
  312.  
  313.  
  314. QRDBMgr:
  315.  
  316.   QRDBMgr.EXE is used to setup a data base, create/edit control files,
  317.   import data and generate index files.
  318.  
  319.   QRDBMgr can be used with or without a mouse. If running without a
  320.   mouse use the arrows keys to select menu items and the Tab key to
  321.   Select Entry fields or Buttons. Main menu items are selected by
  322.   pressing the Alt key plus the HighLighted letter in the menu item
  323.   description.
  324.  
  325.   The diagram below shows the menu selections that are available in
  326.   QRDBMgr.
  327.  
  328.   Remember the Data_Base_Setup functions only put together a control
  329.   file. If you are creating a type 1 data base you will still need to
  330.   import the data using the Import_Type_1_DB_Data function.  In the case
  331.   of a type 3 data base the Build_Type_3_DB_Index function will create
  332.   the necessary indexes to the .DBF file. QRDB does NOT use dBase index
  333.   files.
  334.  
  335.   Qnce a Data Base contains Data/Indexes, changes to certain fields will
  336.   no longer be allowed. You will receive a message telling you which
  337.   fields can't be edited when you attempt to edit a Data Base containing
  338.   data. If you need to edit one of those fields the only way is to Erase
  339.   the data using the Manager's "Erase QRDB Index/Data" function, make
  340.   the necessary changes and then Import, Build or Re-enter the data.
  341.  
  342.   The Erase QRDB Index/Data function works differently on each dB type.
  343.  
  344.     a. The Erase QRDB Index/Data function does not erase dBase .DBF or
  345.        .DBT files, use dBase to erase those. The Erase QRDB Index/Data
  346.        function does erase Type 3 indexes.
  347.  
  348.     b. In the case of the type 2 database Data and Indexes are Erased by
  349.        the Erase QRDB Index/Data function.
  350.  
  351.     c.  When used on a type 1 database the Erase QRDB Index/Data
  352.         function will omly delete Indexes.
  353.  
  354.   The delete function will in addition to accomplishing the erase function
  355.   above will also delete the associated QRDB setup.
  356.  
  357.  
  358.  
  359. ┌──────────────────────────────────────────────────────────────────────────┐
  360. │ Exit  Data_Base_Setup           Operations        Shell_to_QRDB          │
  361. └──────────────┬───────────────────────┬─────────────────┬─────────────────┘
  362.                │                       │                 │
  363.                │                       │                 │
  364.                │                       │                 │
  365.   ┌────────────┴─────────────┐         │                 │
  366.   │ Edit a DB Setup       F2 │         │                 │
  367.   │ Make a New Type 1 DB  F4 │         │                 │
  368.   │ Make a New Type 2 DB  F5 │         │                 │
  369.   │ Make a New Type 3 DB  F6 │         │                 │
  370.   └──────────────────────────┘         │                 │
  371.                                        │                 │
  372.                             ┌──────────┴───────────────┐ │
  373.                             │ Main Menu Title Edit     │ │
  374.                             │ Import Type 1 DB Data    │ │
  375.                             │ Read in Type 2 DB Data   │ │
  376.                             │ eXport Type 2 DB Data    │ │
  377.                             │ Build Type 3 DB Index    │ │
  378.                             │ Copy a QRDB Setup        │ │
  379.                             │ Delete a DataBase        │ │
  380.                             │ Erase QRDB Index/Data    │ │
  381.                             └──────────────────────────┘ │
  382.                                                          │
  383.                                                     ┌────┴───────┐
  384.                                                     │ Color   F8 │
  385.                                                     │ Monochrome │
  386.                                                     └────────────┘
  387.  
  388.  
  389. Creating a Type 1 Data Base  ********
  390.  
  391.   To create a Type 1 Data Base you will need a text file to import. The
  392.   USBBS list by Darwin Systems is a good file to start with. Any list
  393.   you chose to create a Type 1 Data Base from must be one in which the
  394.   data is arranged in columns. QRDB will extract it's keys from those
  395.   columns during conversion. Remove any material that isn't a part of
  396.   the structured data, such as column descriptions or List name. Column
  397.   descriptions are entered during setup, using QRDBMgr. Other info
  398.   removed from the list can be placed in the USBBS.HLP help file if
  399.   desired. A Data Base has already been setup for the USBBS list, select
  400.   the menu item Edit_a_DB_Setup or press F2 to review the setup. If you
  401.   are not going to use the Darwin USBBS list in your Data Base you can
  402.   delete it with the Delete a Data Base Function. If you are going to
  403.   use the USBBS you will need to obtain and edit a copy. Remove all text
  404.   at the begining and end of the list that isn't in structured in
  405.   columns. When you are ready to import your USBBS list select menu item
  406.   Import_Type_1_DB_Data from the Operations menu. A Dialog box will be
  407.   presented listing available control files, select USBBS.1CL, next
  408.   enter the name of the USBBS list that you want to import. After you
  409.   have imported the list you can select menu item Shell_to_QRDB and
  410.   review the new data base.
  411.  
  412.   To create a Data Base other than the USBBS that was provided. Start by
  413.   determining what fields that you want to be key fields, you can have up
  414.   to 5. Now Press F4 to bring up the Make Type 1 DB Dialog Box. You will
  415.   enter Database Name, Data Base Title, Display Header and Read Level.
  416.   The Data Base title is the title that will be displayed in the QRDB
  417.   main menu. The header will be displayed with each page of data. Read
  418.   level is the minimum user level required for access to the data. Use
  419.   the Tab or Mouse to select fields.
  420.  
  421.   Example:
  422.  
  423.      Database Name      SUPPORT
  424.  
  425.      Data Base Title    Computer Hardware/Software Support
  426.  
  427.      Display Header       Company Name            Phone Number     Remarks
  428.  
  429.      Read Level         1
  430.  
  431.  
  432.   Press OK when done or press enter. Next a Dialog Box will be presented
  433.   for the defining of keys.
  434.                                          Key
  435.     Key                      Key         Position
  436.     Search Prompt            Length      in Line
  437.  
  438.     Phone Number             12          31
  439.     Company Name             5           25
  440.  
  441.   At least one Key must be defined. Key Search Prompt is the Prompt QRDB
  442.   will use to describe the key to the user. Key Length is the length of
  443.   the key and Key Position in Line is the starting column that QRDBMgr
  444.   will use when extracting keys during import. 
  445.  
  446.   After the setup has been completed the function Import_Type_1_Db_Data
  447.   will import your textfile into the data base, the function builds
  448.   indexes and a .DAT file. QRDB limits the width of text imported into
  449.   this type 1 data base to 79 characters. More than one text file of
  450.   identical structure can be imported if necessary.
  451.  
  452.   The import feature can be used to add a chunk to an existing data
  453.   base, it is suggested you backup any existing work before importing
  454.   additional data. QRDBMgr does not check the data you are importing and
  455.   improperly structured input could corrupt the data base.
  456.  
  457. Creating a Type 2 Data Base  ********
  458.  
  459.   A couple of sample Type 2 Data Base files have been provided. To
  460.   review their control files, run QRDBMgr press F2 and select
  461.   either of the .2CL files.
  462.  
  463.   Prior to creating a Type 2 Data Base you should first decide on the
  464.   layout of the data that will be presented to the user. The number of
  465.   lines it will take to display a record and the layout of each line. A
  466.   maximum of 5 lines and a maximum of 5 fields per line are allowed.
  467.   Decide witch fields will be (K)ey fields, input (R)equired Fields or
  468.   Input (O)ptional fields. All Key fields are also input required
  469.   fields. The space used to display fields on a line can't add up to
  470.   more than 80 characters. Space required to display a field is the
  471.   length of the data field + the length of the Data Label + a colon and
  472.   a space between label and data. If not enough space is available
  473.   for the full field of the last record on a line the field will be
  474.   truncated.
  475.  
  476.   Note that the QRDB (L) and (B) functions will use the first key
  477.   assigned for their sort order. Another thing to consider is that the
  478.   QRDB (B)rowse function first displays that first key, then starting at
  479.   the first field in the record it displays fields until 80 characters
  480.   are displayed then goes to the next record. If the Key field displayed
  481.   at the beginning of the line is incountered it is skiped. Spacing used
  482.   by (B)rowse is Field Length plus 2 spaces unless the length or the
  483.   display label is greater than the field length, in which case (B)rowse
  484.   will use the display label length.
  485.  
  486.   When the layout has been planed, press F5 or select Add_a_type_2_DB
  487.   from the menu to bring up the Make Type 2 Dialog Box. Fill in the
  488.   Database Name, Read Write and Edit/Del Security Levels and the Data Base
  489.   Title. Use the Tab or Mouse to select fields.
  490.  
  491.   Example:
  492.  
  493.      Database Name:   AREA408
  494.  
  495.      Security Levels  Read      Write     Edit/Del
  496.                        5         5         100
  497.  
  498.      Data Base Title:  User Generated List of Area Code 408 BBS's
  499.  
  500.  
  501.   Press OK when done or press enter. Next a Dialog Box will be presented
  502.   for the defining the first line of the Data Base. You can have up to 5
  503.   lines. The inputs required to define a line are as follows.
  504.  
  505.  
  506.   Example:
  507.  
  508.  ┌─────  Input  ────────────────────────┐ ┌──────────  Display  ──────────┐
  509.  │(K)ey                                 │ │                         Label │
  510.  │(R)eq                           Field │ │                         Start │
  511.  │(O)pt Prompt                    Length│ │Label                    Column│
  512.    K    Phone Number [XXX-XXXX     8       Phone                     1
  513.    K    City                       25      City                      21
  514.    O    Max Baud                   5       Max Baud                  56
  515.                                    0                                                                       0
  516.  
  517.  
  518.   Up to 5 fields per line can be defined, but only a total of 5 keys in
  519.   the 5 lines are all that is allowed. Remember that the total of fields
  520.   and field labels can't add up to more than 80. Oh also allow for
  521.   spaces between fields and Colons after labels.
  522.  
  523.   Maximum key length is 15 characters if a field longer than 15
  524.   characters is designated as a key only the 1st 15 characters in the
  525.   field will be used in the index.
  526.  
  527.   When you have defined the first line press Alt N or use the mouse to
  528.   select the next line button or you can press enter. When you have
  529.   defined the last line that you want to use Select the Done button.
  530.  
  531.  
  532.   Input Info .......
  533.  
  534.   (K)ey-(R)eq-(O)pt    decide if the field will be a (K)ey field, an input
  535.                        (R)equired Field or an Input (O)ptional field. All
  536.                        Key fields are also input required fields.
  537.  
  538.   Prompt               This is the Prompt QRDB will use when asking for Input
  539.                        or describing the sorted lists that are possible.
  540.  
  541.   Field Length         This is the Maximum length of an entry in this field.
  542.                        If it is a Key field it is also the length of the Key
  543.                        unless the field is longer than 15 characters in
  544.                        which case the Key length is set to 15 characters.
  545.  
  546.   Display Info .....
  547.  
  548.   Label                This is the label placed ahead of the data when the
  549.                        line is displayed, when displayed a colon will be added
  550.                        to the label.
  551.  
  552.   Label Start Column   This is column that the first character in the label
  553.                        will be placed in. When a field is displayed the
  554.                        label is followed by a colon and a space and then
  555.                        the data. Labels are not displayed if the field
  556.                        is empty.
  557.  
  558.  
  559.   The data base can be left empty for user input or a comma delimited
  560.   file of data can be imported into the data base using the Operations
  561.   PullDown Menu item (Read in Type 2 DB Data). Data for import must be
  562.   set up as follows. Each record to be created must contain the same
  563.   number of lines that you have established for display by QRDB. Use a
  564.   comma to identify the end of a field's input. A comma is required for
  565.   every field in the record, including blank fields. Remember not to use
  566.   comma's in your data as they would throw things off. See the following
  567.   example.
  568.  
  569. A record from the Example Data Base "User List of Favorite BBS's"
  570.  
  571. │Phone: 408-335-4595   St: Ca    City: Felton
  572. │BBS Name: Mountain Retreat
  573. │MaxBaud: 14400   Size: 660Meg
  574. │Comment: Specializing in Pascal Programming
  575.  
  576. A comma delimited text file for import would look as follows
  577.  
  578. 408-371-7654,Ca,Campbell,
  579. Brown Bag Software,
  580. 2400,,
  581. Brown Bag software support board,
  582. 201-471-6391,Nj,Passaic,
  583. The Passaic/NJPCUG BBS,
  584. 9600,,
  585. Fido Net Node 1:107/559,
  586. 714-824-4328,Ca,Loma Linda,
  587. LLUMC Online Medical Library,
  588. 2400,120Meg,
  589. ,
  590.  
  591.   In summary:
  592.   No blank lines, one line for each line in the record, Comma at the end
  593.   of each field including blank fields. No testing of your input is done
  594.   by QRDBMgr so make sure your input is correct and if you are adding to
  595.   an existing data base you should probably back up the data base before
  596.   starting.
  597.  
  598.   If you are going to import a comma delimited list; select menu item
  599.   Read_In_Type_2_DB_Data from the Operations menu. A Dialog box will be
  600.   presented listing available control files, select the .2CL control
  601.   file for the data base you want to add to, next enter the name of the
  602.   list that you want to import. After you have imported the list you can
  603.   select menu item Shell_to_QRDB and review the new data base.
  604.  
  605.   The import feature can be used to add a chunk to an existing data
  606.   base, it is suggested you backup any existing work before importing
  607.   additional data. QRDBMgr does not check the data you are importing and
  608.   improperly structured input could corrupt the data base.
  609.  
  610. Exporting Type 2 Data
  611.  
  612.   QRDB will Export Type 2 DB Data to a Comma delimited file. Output will
  613.   be based on the record structure and will be in the format required
  614.   for import. Or you can format the data thru the use of a control file.
  615.   Control File structure is as follows, You will need a line in the
  616.   control file for each line of record output required. Identify the
  617.   line with the line number preceded by "L" as L1. Then on that line
  618.   identify the fields that are to be placed on the line using a
  619.   combination of Line that the record is found on a Dos Pipe character
  620.   and the position of the field on the line.
  621.  
  622.   Control files must have the Extension .CTL and the same name as the
  623.   Comma delimited Text file being created. Example if WGX1.TXT is the
  624.   name of the text file being created then WGX1.CTL would be the name to
  625.   use for the control file
  626.  
  627.   The following is an example control file. It consists of the one line:
  628.  
  629. L1  2|1 1|1
  630.  
  631.   The above will export the BBS name and Phone number from the example
  632.   "User List of Favorite BBS's" to a comma delimited file. The name and
  633.   phone number will appear on one line in the output. In order to place
  634.   the data on two lines the control file would look as follows
  635.  
  636. L1  2|1
  637. L2  1|1
  638.  
  639.   To export to a comma delimited file, in which records are written one
  640.   to a line, you would use something like the following. The fields can
  641.   be placed in any order required.
  642.  
  643. L1 1|1 1|2 1|3 2|1 3|1 3|2 4|1
  644.  
  645.  
  646. Creating a Type 3 Data Base ********
  647.  
  648.   A sample Type 3 Data Base has been provided. To review it's
  649.   control files, run QRDBMgr and press F2 and select the .3CL file.
  650.  
  651.   As with the type 2 data base you should have a plan as to how you want
  652.   the data to be displayed. Note that the QRDB (L), (M) and (B) functions
  653.   will use the first key assigned for their sort order. Another thing to
  654.   consider is that the QRDB (B)rowse function first displays that first
  655.   key, then starting at the first field in the record it displays fields
  656.   until 80 characters are displayed then goes to the next record. If the
  657.   Key field displayed at the beginning of the line is incountered it is
  658.   skiped. Spacing used by (B)rowse is Field Length plus 2 spaces unless
  659.   the length or the display label is greater than the field length, in
  660.   which case (B)rowse will use the display label length.
  661.  
  662.   The dBase date field is converted to MM/DD/YYYY when displayed. When
  663.   listing by date field order when the date field is a Key field, QRDB
  664.   converts user input from ,MM/DD/YYYY, MM-DD-YYYY, or MM/DD/YY to the
  665.   dBase format YYYYMMDD. If users will be wanting to search for dates
  666.   that are in dBase date fields, it would be a good idea to make the
  667.   date field a Key field as the search function does not do any
  668.   converting.  Look at the chaplin dbase file and help screen for an
  669.   example.
  670.  
  671.   When you have a plan press F6 or select Add_a_type_3_DB from the menu
  672.   to bring up the Make Type 3 Dialog Box. Fill in the Name of the .DBF
  673.   file you are going to use. If the dBase file is not in the QRDB
  674.   directory you will need the Full Path Name. A minor problem created by
  675.   the Full Path Name is if the database is passed to another system the
  676.   dBase file must be placed in a directory with the identical name, not
  677.   a problem if the database is used on one machine. Next input Security
  678.   Levels and the Data Base Title. Use the Tab or Mouse to select fields.
  679.  
  680.   Example:
  681.  
  682.     .DBF file Name:    CHAPLIN.DBF  (or C:\dBase\Chaplin.Dbf)
  683.  
  684.     Read Security Level:   1
  685.  
  686.     Data Base Title:     A data base of Chaplin movies
  687.  
  688.   Press OK when done or press enter. Next a Dialog Box will be presented
  689.   for the defining the layout of the dBase data on the screen.
  690.  
  691.   Example:
  692.  
  693. ╔═[■]═══════════════════════ Type 3 Db  Fields  ════════════════════════
  694. ║ ┌─ dBase Field ───┐ ┌────────── QRDB Handling Instructions ──────────┐
  695. ║ │                 │ │(N)/A                                           │    ║
  696. ║ │                 │ │(O)pt                                           │    ║
  697. ║ │                 │ │(R)eq                                           │    ║
  698. ║ │Name      Typ Len│ │(K)ey  Display Label                   Line Col │    ║
  699. ║  TITLE      C  30      O     Title                           1    1
  700. ║  COMPANY    C  15      O     Company                         1    38
  701. ║  RELEASE_D  D  10      K     Released                        4    1
  702. ║  DIRECTOR   C  30      O     Director                        3    1
  703. ║  WRITER     C  30      O     Writer                          3    38
  704. ║  FEETLENGT  N  5       N                                     0    0
  705. ║  FEET_SHOT  N  6       N                                     0    0
  706. ║  REELS      N  4       N                                     0    0
  707. ║  MINUTELEN  N  3       N                                     0    0
  708. ║  START_DAT  D  10      N                                     0    0
  709. ║  END_DATE   D  10      N                                     0    0
  710. ║  ACTOR      C  30      O     Actor                           2    1
  711. ║  ACTRESS    C  30      K     Actress                         2    38
  712. ║  SUPPORT    M  10      O     Support Memo                    5    1
  713. ║  MUSIC      M  10      O     Music Memo                      5    26
  714. ║  CREDITS    M  10      O     Credits Memo                    5    52
  715.  
  716.  
  717.  
  718.   dBase Field Info .......
  719.  
  720.                        The dBase field Name, Type and Length are
  721.                        displayed as an aid in working out the Handling
  722.                        info required by QRDB.
  723.  
  724.   QRDB Handling Info .......
  725. ║ │                 │ │(N)/A                                           │    ║
  726. ║ │                 │ │(O)pt                                           │    ║
  727. ║ │                 │ │(R)eq                                           │    ║
  728. ║ │Name      Typ Len│ │(K)ey  Display Label                   Line Col │    ║
  729.  
  730.  
  731.  (N)/A-(O)pt-(R)eq-    Decide if the field will be a (K)ey field, a (D)isplay
  732.               (K)ey    Field or a (N)ot Required Field. Fields coded (N)
  733.                        are not used by QRDB. Memo fields must be coded (O)
  734.                        or (N), they can NOT be a key field. In the example
  735.                        the fields SUPPORT, MUSIC and CREDITS are memo
  736.                        fields.
  737.  
  738.   Display Label        This is the Label QRDB will use when displaying the
  739.                        associated field data.
  740.  
  741.   Line                 This is the line that the Label and the Field data
  742.                        data will be placed on when QRDB is displaying the
  743.                        data.
  744.  
  745.   Col                  This is column that the first character in the label
  746.                        will be placed in. When a field is displayed the
  747.                        label is followed by a colon and a space and then
  748.                        the data. Labels are not displayed if the field
  749.                        is empty.
  750.  
  751.   After the above Setup is complete go to the operations menu and Build
  752.   the Type 3 DB Index. You must Build indexes even if you are starting
  753.   with a empty database. If ever changes are made to the .Dbf database
  754.   files outside of QRDB you will have to repeat this Build function.
  755.   This function can be time consuming, I just indexed a 39,945 record
  756.   dBase file. The .dbf file size is 5073k and the setup uses 3 key
  757.   fields. Indexing on a 386sx 20Mz machine took 15 Hours. As a
  758.   comparison, indexing a file of 2,348 records that had 2 key fields and
  759.   a dBase .dbf file size of 761k took less than 2 minutes. The increase
  760.   in time required for the Build process is not linear as you can see.
  761.  
  762.   If you would like to use the type 3 data base, let's say for it's Memo
  763.   display capability and don't use a dBase compatable Data Base program.
  764.   You can use the Shareware program dBuddy to create the required files.
  765.   dBuddy (Data Base Buddy) is a dBase tool, it will build dBase III or
  766.   IV compatable Dbf and .Dbt files, either empty dBase files or it can
  767.   extract data from text files. dBuddy will Export to character
  768.   delimited files or text files, memo's are also exported. dBuddy is
  769.   available on Mountain Retreat 1:216/506, 408-335-4595. It can be
  770.   Freq'd under the magic name dBuddy.
  771.  
  772.   When used to create a new type 3 setup the copy function will copy and
  773.   create a empty .dbf file. QRDBmgr does not create associated memo
  774.   files and complains that they are missing, not a problem, as QRDB will
  775.   create the memo files the first time a memo is added.  The empty file
  776.   can be replaced with a file containing data as long as the fields are
  777.   an exact match.
  778.  
  779.   Disclaimer agreement
  780.  
  781.     Users of QRDB and QRDBMGR must except the following disclaimer
  782.     agreement:
  783.  
  784.     QRDB and it's utilities are provided AS IS. The Author makes no
  785.     Warranty of any kind, expressed or implied. In addition THE AUTHOR
  786.     ASSUMES NO LIABILITY FOR DAMAGES WHICH MAY RESULT WHICH MAY RESULT
  787.     FROM THE USE OF QRDB, QRDBMGR or associated utilities.
  788.  
  789.    History
  790.  
  791.     Version 1.00    Initial Release
  792.     Version 1.01    Added a Main Menu help function
  793.     Version 1.02    Added a type 2 data import function and fixed
  794.                     a bug in the type 3 data dase setup functions
  795.     Version 1.03    Changed screens and added local mode default.
  796.     Version 1.04    MultiNode support added
  797.     Version 1.05    Beta Release switched to use of DorInfo1.Def
  798.                     in order to make the door useable on more systems.
  799.     Version 1.06    Release of DorInfo1.Def version
  800.     Version 1.07    Added support for dBase III and dBase IV memos
  801.                     Added support for dual word searches
  802.     Version 1.08    Improved dBase searches added dual word searches
  803.                     and speed.
  804.     Version 1.09    Miner changes mainly in docs to aid in setup
  805.     Version 2.0     Changed QRDBMgr to allow the rebuilding of Index
  806.                     files if changes have been made to the dBase
  807.                     .DBF files. Changed QRDB to allow smoother exit
  808.                     from Search functions.
  809.     Version 2.1     Added Browse function to type 2 and 3 database
  810.                     menus. Added a Pause Page Toggle to all types.
  811.                     Stoped scrolling the screen when displaying
  812.                     the number of records searched. QRDB now overwrites
  813.                     the message for a cleaner display.
  814.     Version 2.2     In type 2 database if Read access was not given then
  815.                     then Write access was locked out. QRDB will now
  816.                     allow you to give a user Write access without giving
  817.                     read access.
  818.     Version 2.3     Improved Browse feature. Added capability to a Type 2
  819.                     database to a comma delimited file.
  820.     Version 2.3a    Main menu can be bypass, command line option, fix.
  821.     Version 2.3b    Program now gives full pathname in .Key not found
  822.                     Error message. Moved the Browse function to the
  823.                     top position in the menu. Changed the timer routine
  824.                     I was using, it could possibly lock a system.
  825.     Version 2.4     Added additional drop carrier protection, added
  826.                     escape from data entry feature.
  827.     Version 3.0     Beta version, Major upgrade, adds edit to type 2
  828.                     database and adds Add, Edit and Delete to type 3.
  829.                     User has edit/delete access to any record he creates.
  830.             3.0B    Fixed level problem, a level equal to or greater than
  831.                     the level set in QRDB now has access. Prior to fix
  832.                     user level had to be greater for access.
  833.             3.1     Beta status Removed, Main Menu Help problem fixed and
  834.                     Memo Display bug fixed.
  835.             3.2     Type 3 Browse Bug fix.
  836.             3.3     Cosmetic Bug fix, the word changed is no longer
  837.                     displayed when entering a dBase record.
  838.             3.4     dBase file handler Bug Fix.
  839.             3.5     Fixed disappearing cursor problem,
  840.                     Improved "Build Type 3 DB Index" routines.
  841.                     Added type 3 db to QRDBMgr copy function
  842.                     Fixed problem QRDB had in using a empty type 3 .dbf
  843.             3.6     Beta Version Will now use Door.Sys or DorInfo1.Def
  844.             3.7     Door.Sys version as yet not reported OK
  845.                     Dos 6 NO GO fixed.
  846.             3.7a    Beta Status removed, Documentation change only.
  847.             3.8     Type 3 Bug Fix
  848.  
  849.     QRDB is ShareWare, a $25 registration fee is required. When you
  850.     register send me a 65 character message of your choice. You will be
  851.     sent a new QRDB.KEY file. Your 65 character message will replace the
  852.     following line in the QRDB menu.
  853.  
  854.   ╠════════════════════════════════════════════════════════════════════════╣
  855.   ║      QRDB Door - Mt. Retreat Software - Support BBS (408)335-4595      ║
  856.   ╚════════════════════════════════════════════════════════════════════════╝
  857.     In addition this new Key will prevent the QRDBMGR from displaying
  858.     it's startup message.
  859.  
  860.  
  861.     If you decide to continue useing QRDB after a 90 day trial period
  862.     you are expected to register. This is a one time registration your
  863.     key will work with all revisions.
  864.  
  865.     Please send your registration fee to:
  866.  
  867.              John Jamieson
  868.              Mountain Retreat Software
  869.              555 Buckeye St.
  870.              Felton Ca, 95018
  871.  
  872.     For support contact:
  873.  
  874.              Fidonet 1:216/506
  875.              Internet John.Jamieson@f506.n216.z1.FIDONET.ORG
  876.              BBS phone (408)335-4595
  877.              Voice (408)335-4672
  878.  
  879.  
  880.     
  881.