home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload / ShartewareOverload.cdr / database / datamage.zip / HELPFILS.ZIP / SORTGRUP.HLP < prev    next >
Text File  |  1990-11-18  |  5KB  |  115 lines

  1. "SORT GROUP HELP:"
  2.  
  3. "This function places the records  in  the  current  group in ascending"
  4. "order.  The  data  used as the target of the sort can be on disk or in"
  5. "memory.  The user-assigned record  numbers and  counter  fields are in"
  6. "memory, and any field can be used as the target of the sort."
  7.  
  8. "This function has four possible targets and three  possible  execution"
  9. "methods.  It will sort alpha, numeric, date or mixed data."
  10.  
  11. "RECORD NUMBERS:"
  12.  
  13. "An internal  routine is supplied to place the current group of records"
  14. "in order on their user-assigned record numbers."
  15.  
  16.  
  17.  
  18. "NUMERIC AND DATE SORTING:"
  19.  
  20. "DATAMAGE has a numeric  sort  routine that's faster than  alpha-sorts."
  21. "It can handle only one numeric or date field as it attempts to use RAM"
  22. "to store the data being sorted.  It uses the  same  RAM or  DISK space"
  23. "that is allocated to store one of the counter fields."
  24.  
  25. "If both counter fields are active when this function  is  accessed the"
  26. "user must select one of them to be used as the storage  area  for  the"
  27. "sort.   Using a counter field for this  purpose  destroys its' current"
  28. "content.  To preserve the data in the counter you can write it to disk"
  29. "in a segment defined as  general purpose.   After the sort you can put"
  30. "the data now on disk back into the counter. (using F13)"
  31.  
  32. "The selection of the numeric  sort routine is automatic.  When you opt"
  33. "to do a  sorting  operation on only one numeric or date field the rou-"
  34. "tine is selected for you."
  35.  
  36. "The date fields hold numeric data in the positions that matter: 1 & 2,"
  37. "4 & 5, 7 through 10.  You can place any character in 3 and 6, the sort"
  38. "will ignore them.  According to the format  for  the dates in the file"
  39. "they will be converted into numeric data and sorted."
  40.  
  41. "ALPHA SORTING:"
  42.  
  43. "After selecting the initial  target field for the sort you  will  have"
  44. "an opportunity to select up to five tie-breaker fields.  If duplicates"
  45. "are encountered in the target field -- a tie -- the data in the first,"
  46. "then the second tie-breaker field will be used to determine the  order"
  47. "of the records."
  48.  
  49.  
  50.  
  51.  
  52. "NAME FIELDS:"
  53.  
  54. "Some of the fields selected as alpha  sort targets can be processed as"
  55. "a name field.   If you opt for  name field  operation the target field"
  56. "will be split into first and last names and the last  name will be the"
  57. "primary  target of the sort.  The first names will be the tie-breaker."
  58.  
  59. "During name field operation the last name will be the last word in the"
  60. "field  unless the field ends with  a  period.  If a period is the last"
  61. "character the  program  will  use the last TWO words as the last name."
  62. "That way the  JRs,  ESQs,  IIIs and the like will appear in the sorted"
  63. "list with the last name that precedes them.  If you enter a JR with no"
  64. "period then JR will be considered the last name."
  65.  
  66.  
  67.  
  68.  
  69. "SORTING AS NUMERIC"
  70.  
  71. "You can opt to sort a field declared as string as a numeric field.  It"
  72. "will be padded on the right with  zeros and alpha-sorted."
  73.  
  74. "AFTER THE SORT:"
  75.  
  76. "If a tie-breaker field is used the target field will  be  displayed in"
  77. "the primary display area (normally reserved for the record name)  when"
  78. "you return to BROWSE, and the first tie-breaker will be in the  secon-"
  79. "dary display on the line beneath it."
  80.  
  81. "If no tie-breaker was selected the record name will, as usual,  appear"
  82. "In the primary area, and the target field will be in the secondary."
  83.  
  84.  
  85.  
  86. "BINARY SEARCHES"
  87.  
  88. "After your group of records has been put in order you have established"
  89. "an index into the file.  The  BINARY SEARCH  routine can find a record"
  90. "in a mighty hurry, provided you know the content of the field(s)  upon"
  91. "which you have ordered your records."
  92.  
  93. "MAINTAINING MARKER FILES FOR BINARY SEARCHES"
  94.  
  95. "The power of the binary search is impressive, but,  as usual,  we will"
  96. "have to pay for it.   The price is extracted as the sort routine takes"
  97. "your time to put the records in order. If you had a large datafile and"
  98. "had to sort the group each time you opened the file in order to search"
  99. "it you would have to find a lot of records to break even."
  100.  
  101. "You may wish to record a MARKER FILE (F-10)  after sorting your group."
  102. "New  records  will be added,  old ones deleted,  and the order of your"
  103. "group will be changed.   Then you will  need to sort it again to get a"
  104. "current index into the file so you can search it."
  105.  
  106. "That's where a MARKER FILE can save you a LOT of time.  The speed with"
  107. "which ANY sorting routine can place your records in order depends upon"
  108. "the order they're in when you sort them.  By loading a marker file you"
  109. "place most of the records in order,  and the sort routine has far less"
  110. "work to do than it would to sort the group in no order."
  111.  
  112. "The RESTORE REMAINING RECORDS  option  within the  MARKER  function is"
  113. "designed to aid in the maintenance of MARKER FILES  for the purpose of"
  114. "BINARY SEARCHES.  Please read the help screen for MARKER FILES (F-10).
  115.