home *** CD-ROM | disk | FTP | other *** search
/ CP/M / CPM_CDROM.iso / jsage / znode3 / uploads / z3help37.lbr / ZDB.HZP / ZDB.HLP
Encoding:
Text File  |  1993-06-07  |  13.5 KB  |  276 lines

  1. ;
  2.                                                 
  3.                              ---  Z  D  B  ---  
  4.                                                 
  5.        Version 1.2 -- A ZCPR3 Name and Address Database File Manager
  6.  
  7.                            I -->  Installation 
  8.                            D -->  Description  
  9.                            U -->  Use          
  10.                            A -->    Add        
  11.                            L -->    Delete     
  12.                            E -->    Edit       
  13.                            F -->    Find       
  14.                            B -->    Browsing   
  15.                            O -->    Output     
  16.                            P -->  Patching     
  17.                            X -->  Index        
  18.                            S -->  Sorting      
  19.                            Y -->  Miscellany   
  20. :I
  21.  
  22.  Installation 
  23.  
  24. If you're running ZCPR3.3+, ZDB needs no ZCPR3 installation, but if you're 
  25. running ZCPR3.0, you need to install ZDB in your usual way.
  26.  
  27. Before using ZDB you will need to patch it with your own return address.  
  28. You may also need to change the standout video flags or printer codes to 
  29. match your terminal or printer.  See ZDB.PAT for more information.
  30. :D
  31.  
  32.  Description - 1/2 
  33.  
  34. ZDB is the Z-System Database, a name and address file manager.  What sets 
  35. ZDB apart are its size (under 8K) and speed (written in Z80 assembler), its 
  36. use of the Z-System extended TCAP and VLIB routines for screen graphics and 
  37. cursor movement, its easy editing mode, and its use of the internal clock 
  38. to date each entry automatically.  ZDB will also search for any string (or 
  39. part thereof) in any field.  An express search for last name or zipcode 
  40. uses an in-RAM index of pointers for blazing speed.  As of release 1.1 the 
  41. sorting routines are those done by Joe Wright for the updated version of 
  42. SYSLIB.  You may also write the records to a new file in the sorted order 
  43. of the current index, removing deleted records in the process.  The old 
  44. file is renamed and retained as a backup.  The new file is automatically 
  45. reopened after the sort is done and the first record displayed just as on 
  46. startup.  Output options include label, envelope, and directory printing, 
  47. and the writing of a comma-delimited format ASCII file for use with 
  48. WordStar's MergePrint.  Label printing, directory, and CDF options, allow 
  49. the selection of any one of four keys for the output.
  50.  
  51.  Description - 2/2 
  52.  
  53. ZDB is fully Z-System dependent.  If you lack a clock, ZDB allows for 
  54. manual entry of the date.  ZDB does not require an RCP or FCP or IOP to 
  55. work.  It does need the extended TCAP with the 13 graphics characters 
  56. introduced in VLIB4D.
  57.  
  58. ZDB's data file uses a 256 byte record so that each one is on a page 
  59. boundary.  There is no header to the file.  File size is limited to a mere 
  60. 64K 256 byte records -- due to the use of 16 bit counters for the number of 
  61. records and the file pointer.  Disk capacity is the real world limiter on 
  62. file size.  On a 390K floppy, ZDB itself will take 8K.  Divide the 
  63. remaining 382K by 2 (you need twice the space in order to do a sort) to get 
  64. maximum file size -- in this case 764 records of 256 bytes.  On a hard 
  65. disk, of course, you hardly need to worry about file size.
  66.  
  67. The index requires 16 bytes per record plus an order table equal to the 
  68. number of records in the data file.  Writing the CDF ASCII file requires a 
  69. 16K buffer above the index and order table.  A system with 45K or more of 
  70. TPA should handle a ZDB file of 1200 records without overwriting the CCP.
  71. :U
  72.  
  73.  Use 
  74.  
  75. Entering 'ZDB /<cr>' at the command line will produce a help message.  If 
  76. you also enter a data file name, ZDB will look for it, create it if it does 
  77. not exist, and display either a blank record (if it's a new file) or the 
  78. first non-erased one in the file.  If no file name is specified, ZDB will 
  79. use ZDB.DTA as the default data file name.
  80.  
  81. If you don't have an internal clock (or have a clock module loaded), ZDB 
  82. will ask for the current date.  If you wish to quit at this point, enter ^C 
  83. at any time while entering the date.
  84.  
  85. The menu of ZDB commands is displayed in a single menu line at the bottom 
  86. of the screen.
  87. :A
  88.  
  89.  Add - 1/2 
  90.  
  91. 'A' for Add is the command used to enter new records.  The display is 
  92. cleared and the cursor placed in the first field ready for your entry.  
  93. Each field is marked off with angle brackets -- >           < -- so you 
  94. know how much space you have.  If you try to enter more characters than 
  95. allowed in any field, you will get beeped at, but you can back up and fix 
  96. things.  ^X, TAB or RETURN moves to the next field.  ^E moves to the 
  97. previous one.  ^S/^D move cursor left/right.  ^A/^F move cursor one word 
  98. left/right.  U/D/L/R terminal arrow keys are intercepted and interpreted 
  99. properly.
  100.  
  101. ^G deletes the character at the cursor and moves the remainder of the line 
  102. one character left.  ^Y deletes from character at the cursor to the end of 
  103. line.  ^V toggles the character insert mode, allowing you to insert 
  104. characters at the current cursor position, shifting the rest of the line to 
  105. the right.
  106.  
  107.  Add - 2/2 
  108.  
  109. If you go past the first or last field, you are given a choice of redoing 
  110. the entry to correct any mistakes or omissions or saving.  Press ESC or ^W 
  111. at any point to finish the entry.  Entering ^Q at any point will abort the 
  112. entry without saving the results.  Boxes near the bottom of the screen 
  113. display editing keys and give prompts.  On completion of a new entry you 
  114. are given the option of continuing to add new records or quitting.  When 
  115. you finish entering new records, the index will automatically be sorted.
  116.  
  117. If you wish to ensure that a header record that describes the data file is 
  118. always displayed as the first record when the file is sorted on either 
  119. index, enter several spaces as the initial first and last name characters 
  120. and make sure the ZIP Code field has no entry.  See ZDB.DTA.
  121. :L
  122.  
  123.  Delete 
  124.  
  125. Pressing 'D' lets you delete a record from the file.  You are given a 
  126. chance to say no if you mistakenly press the 'D'.  The record is filled 
  127. with nulls except for the first byte which is 0FFH, marking it as a deleted 
  128. record.  Deleted records are dropped from the new file when a new sorted 
  129. file is written.  Deleting a record does not change the record count in the 
  130. header line of the screen since the deleted record is still in the file 
  131. until a new sorted file is written.  Deleted records are not displayed or 
  132. printed.
  133. :E
  134.  
  135.  Edit 
  136.  
  137. 'E' for Edit works exactly like Add except that it is for updating existing 
  138. information.  You cannot edit the date.  It is changed automatically.  As 
  139. in Add, ESC or ^W exits the editing session and saves the edited record and 
  140. ^Q aborts the editing session and restores the unedited record.
  141. :F
  142.  
  143.  Find - 1/2 
  144.  
  145. There are two search routines in ZDB.  'X' (Express) Find searches the 
  146. index in memory for a match.  Because the index is in memory, the Express 
  147. search is very fast.  When the index is sorted by last and first names, 
  148. each index record is made up of the first 10 characters of the last name 
  149. and the first 4 characters of the first name.  When the index is sorted by 
  150. ZIP Code, each record contains the 10 characters in the ZIP Code field and 
  151. the first 4 characters in the last name.
  152.  
  153. The other search works on any field but is slower, as it must read each 
  154. record and search it for a match.  Press 'F' for this one.
  155.  
  156.  Find - 2/2 
  157.  
  158. You may enter up to ten characters in the search string.  Find is not case 
  159. sensitive and partial strings are fine.  Entering "jo" to search for 
  160. "Jones" will get the job done.  You can enter more than one word, e.g., 
  161. "St. Paul," as long as they are in the same field.  If the search string is 
  162. found in any field of any record, that record will be displayed on the 
  163. screen.  You may then opt to end the search or continue it.  If there's no 
  164. match, ZDB tells you so.  Even in fairly large files, Find works quickly, 
  165. but Express Find is much faster.  Express Search and Find are also 
  166. available under the Output routine.
  167. :B
  168.  
  169.  Browsing 
  170.  
  171. Previous and Next are for browsing through the file.  Pressing '<', or ',' 
  172. both work for Previous and '>', or '.' both work for Next.  Records are 
  173. displayed in sorted index order, so if the file is not in sorted order, the 
  174. record numbers appearing in the header line may not be in sequential order.  
  175. Records are displayed in a circular wrap-around manner.  If you are going 
  176. backwards through the file and reach the first record, another Previous 
  177. command will go to the end of the file.  "Next" acts in a similar fashion 
  178. when it reaches the end of the file.  Two other commands, not on the menu, 
  179. are 'T' (Top) and 'B' (Bottom).  They quickly take you to the first or last 
  180. record in the file.
  181. :O
  182.  
  183.  Output -1/2 
  184.  
  185. Output has submenus offering a choice of printing labels, envelopes, and a 
  186. directory, or producing a comma-delimited format ASCII datafile.  The label 
  187. option gives the further choice of printing a single label, those which 
  188. match a key, multiple copies, or the entire file.  When you select 'Key', 
  189. you will be asked to select the city, state, zip code or comments2 fields 
  190. for matching the specified key.  If you want to make labels for your 
  191. Christmas card list, you could use 'CL' in the Comments2 field as your 
  192. code.  There's room for lots of imagination in the use of this feature.  
  193. 25 characters are searched in the Comments2 field so many two-letter codes 
  194. can be specified.  Both the label and envelope option allow you to use 
  195. Find, Xfind, or Next before issuing the print command.
  196.  
  197. The Directory options also allows a choice of printing the entire file or 
  198. only those records which match one of the four keys.
  199.  
  200.  Output -2/2 
  201.  
  202. The CDF option offers a choice of writing the entire file (choose 'All' at 
  203. the menu) or selected records (choose 'K' at menu) and pick the key to use. 
  204.  
  205. Printing (and writing of the CDF file) is done in sorted index order.  For 
  206. bulk mailings, use the ZIP Code index feature to print labels in sorted ZIP 
  207. Code order.  Printer escape codes (Epson FX-85 compatible) are near the 
  208. beginning of ZDB and may be patched as the user wishes.  A return address 
  209. for the envelope is also hard coded in ZDB and should be changed for your 
  210. use or eliminated.  See ZDB.PAT for more patching information.
  211.  
  212. The CDF file routine uses a large output buffer and does its job very 
  213. quickly.  The resulting file is in the currently logged directory.  It is 
  214. an ASCII file and can be edited with ZDE or any other word processor.
  215. :P
  216.  
  217.  Patching 
  218.  
  219. ZDB has a number of locations near the beginning of the program that can be 
  220. patched using ZP, ZPATCH, DDT, etc, to alter the operation of the program 
  221. to suit the user.  ZDB.PAT may also be renamed, assembled to an overlay 
  222. file and overlaid on ZDB.COM to create a custom copy of ZDB.  ZCNFG17.COM 
  223. and the configuration file ZDB11.CFG may also be used to change some of 
  224. ZDB.COM's more common user-configurable settings.  See ZDB.PAT for further 
  225. information.
  226. :X
  227.  
  228.  Index 
  229.  
  230. The Index command allows you to specify the field to use to make up the 
  231. index.  The index is automatically maintained in sorted order and 
  232. determines the order in which the records are displayed or printed.  The 
  233. index display informs you of the current index type.  The Last Name index 
  234. key produces an index record for each file record consisting of the first 
  235. 10 characters of the last name and the first 4 characters of the first 
  236. name.  The ZIP Code index key produces index records consisting of the 10 
  237. ZIP Code field characters and the first 4 characters of the last name.  
  238. Since you always have at least the initial 4 last name characters, Express 
  239. Finds using up to the first 4 last name characters will work no matter 
  240. which index is currently in use.
  241. :S
  242.  
  243.  Sort 
  244.  
  245. The Sort command (^S) writes a new file in the current directory with the 
  246. original data file name having its records in the order of the current 
  247. sorted index.  The old file is retained as a backup with the name 
  248. BACKUP.DTA.  If a previous BACKUP.DTA file is present, it is deleted.  
  249. Deleted records are purged when Sort writes a new file.
  250. :Y
  251.  
  252.  Miscellaneous 
  253.  
  254. ZDB's data file uses a 256 byte record so that each one is on a page 
  255. boundary.  Disk capacity is one limiter on file size.  On a 390K floppy, 
  256. ZDB itself will take 8K.  Divide the remaining 382K by 2 (you need twice 
  257. the space in order to do a sort) to get maximum file size -- in this case 
  258. 764 records of 256 bytes.  On a hard disk, of course, you hardly need to 
  259. worry about file size.
  260.  
  261. The other limiter on file size is RAM.  The index requires 16 bytes per 
  262. record plus 2 bytes per record for an order table.  Writing the CDF ASCII 
  263. file requires a 16K buffer above the index and order table.  A system with 
  264. 50K or more of TPA can handle a ZDB file of 1400 records without over- 
  265. writing the CCP.  If you never need a CDF file, you can handle a much 
  266. larger file, as much as 2400 records, depending on your TPA.  Very large 
  267. files take time for ZDB to read through, index, and sort on startup, a 
  268. minute or longer.  Writing a new, sorted file takes about 1 minute per 100 
  269. records on a hard disk drive system, longer on floppies.  If you have very 
  270. large files, it may make sense to break them into smaller units for easier 
  271. handling by ZDB.
  272.  
  273. Sometimes the screen display may get out of whack.  The main menu has an 
  274. undisplayed command -- ^R (Control-R) -- which refreshes the screen 
  275. display.
  276.