home *** CD-ROM | disk | FTP | other *** search
/ Shareware 1 2 the Maxx / sw_1.zip / sw_1 / BUSI / MAGEV40B.ZIP / HELPFILS.ZIP / SORTMRKR.HLP < prev    next >
Text File  |  1990-11-17  |  5KB  |  86 lines

  1. "MARKER FILE HELP"
  2.  
  3. "Sorting place MARKER (MARKER) files record the current  group to disk."
  4. "You may also record the content of the counters and the names you gave"
  5. "then when they were were computed, if any."
  6.  
  7. "Suppose that we have defined a  group  by doing  one  or  more  select"
  8. "records sorts.  We need to divide our current group into two subgroups"
  9. "and process them individually, then re-load the entire group and print"
  10. "a report.  By writing a MARKER file after  defining the main  group we"
  11. "can fearlessly destroy it by doing another select records operation."
  12.  
  13. "Then, after processing the first subgroup, we re-load the MARKER file."
  14. "The second exclusive sort rejects the records we just processed  so we"
  15. "can process the remainder.  After we do, we re-load the  MARKER file a"
  16. "second time and print the list containing data we just calculated  and"
  17. "wrote into the records."
  18.  
  19. "DATAMAGE offers two ways to re-load a MARKER file: You may replace the"
  20. "current group with the  records  contained in the MARKER file,  or add"
  21. "them to the current group.   If you opt to append records the counters"
  22. "will be zeroed by the program during loading. If you are replacing the"
  23. "current group the counters written in the MARKER will be loaded."
  24.  
  25. "Another use of a MARKER  file is to pass the  INTERNAL  record numbers"
  26. "(file sequence numbers)  of  the current  group and  up to two numeric"
  27. "datas to another program.  The POWER MAIL  and  POWER COPY programs in"
  28. "this package accept MARKERs written by this program."
  29.  
  30. "Suppose you are processing a mailout-compatible file  and you  want to"
  31. "send a sales blurb to everyone in Texas.   You would sort  all records"
  32. "for TX as the state,  then use F10 to create a  MARKER called MAILOUT."
  33. "Then, exit the BASE program and select #3, print mass mailing from the"
  34. "system access screen.  When the POWER MAIL program starts it loads the"
  35. "file, then the MARKER, and prints  the  sticky labels  only  for those"
  36. "records contained in the MARKER--the Texas records."
  37.  
  38. "WARNING: The MARKER files are only good until a record has been edited"
  39. "deleted or entered.  Then the state of  the file has  changed  and the"
  40. "MARKER may no longer be accurate.  Using the example above, a new rec-"
  41. "ord may be entered, and it might have TX in the state code field."
  42.  
  43. "It wasn't in the file when we made our MARKER so it isn't in the  file"
  44. "we recorded.  If we go ahead and mail to those in the old  MARKER file"
  45. "the new record will be passed over."
  46.  
  47. "Even worse, a record in the MARKER could have been deleted and another"
  48. "record,  entered since the  deletion and  automatically  placed in the"
  49. "hole left by the deleted record, could be included."
  50.  
  51. "There is only one  way  to permanently define a group:  Create a MACRO"
  52. "that makes a MARKER during execution."
  53.  
  54. "RESTORE REAMINING RECORDS OPTION"
  55.  
  56. "The MARKER FILES can also be used to record a BINARY INDEX.  When  you"
  57. "sort the group of records into order the BINARY INDEX is created.  You"
  58. "may then BINARY SEARCH the records."
  59.  
  60. "By saving the group in a MARKER FILE you preserve it's order. When you"
  61. "need to search the group again on the  same field you can re-load your"
  62. "MARKER file, which is lots quicker than sorting the group again."
  63.  
  64. "Many programs offer this BINARY SEARCH  on selected fields for which a"
  65. "bulky index file must be kept.  The file is automatically updated."
  66.  
  67. "DATAMAGE offers the power of BINARY SEARCH on every field,  the record"
  68. "numbers and the counters.  No file is required, nor is it necessary to"
  69. "declare the field as indexed. All you need do to BINARY SEARCH a field"
  70. "is to point the sort routine at it and place  your records in order on"
  71. "it.  The rest is automatic.  Just hit F-5, and go BINARY."
  72.  
  73. "The value of an MARKER FILE is it's ability to speed sorting.  You MAY"
  74. "have an index file, you may not.   You may re-index your file whenever"
  75. "you wish.  You are free to do what you need."
  76.  
  77. "If you enter/edit/update records while the BINARY  INDEX is active the"
  78. "program will upadte it autoamtically.  But it WILL NOT save the index"
  79. "file for you.  You may do so by pressing F-10, but sooner or later we"
  80. "all forget.  When you do it's no big deal."
  81.  
  82. "To update a BINARY INDEX file you first load the old MARKER.  Then you"
  83. "use the  RESTORE REMAINING RECORDS  option of the  MARKER  function to"
  84. "add the records that have been entered since your last re-index.  Most"
  85. "of your records are now in order, and the SORT routine will make quick"
  86. "work of the rest. Finally, over-write your MARKER file with the index."