home *** CD-ROM | disk | FTP | other *** search
/ CP/M / CPM_CDROM.iso / jsage / zsus / z3help / z.lbr / ZDB.HZP / ZDB.HLP
Encoding:
Text File  |  1991-11-18  |  14.6 KB  |  295 lines

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