home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-387-Vol-3of3.iso / p / pafemp.zip / PAFEMPTY.DOC < prev    next >
Text File  |  1993-02-13  |  7KB  |  140 lines

  1.                                     PAFEMPTY
  2.                                   Version 1.0
  3.                                   
  4.                         Copyright (C) 1993 by Ann Turner
  5.  
  6.  
  7.       --  STARTUP INSTRUCTIONS
  8.  
  9.           PAFEMPTY is an MS-DOS program which prepares a PAF database for
  10.           the accurate use of the Focus feature for "EMPTY" date fields.
  11.  
  12.           To run the program, simply type PAFEMPTY. You will be asked for
  13.           the location of the PAF data file INDIV2.DAT. Type the drive
  14.           and path, for example B: for a floppy disk, or C:\PAF\DATA\ for
  15.           a hard disk with subdirectories. (Your subdirectories may have
  16.           different names.)
  17.           
  18.          ╔════════════════════════════════════════════════════════════════╗
  19.          ║                                                                ║
  20.          ║               PAFEMPTY MODIFIES YOUR DATABASE.                 ║
  21.          ║                                                                ║
  22.          ║     BE SURE YOU HAVE A GOOD BACKUP COPY BEFORE PROCEEDING!     ║
  23.          ║                                                                ║
  24.          ╚════════════════════════════════════════════════════════════════╝
  25.  
  26.  
  27.       --  BACKGROUND
  28.       
  29.           The 5 Aug 1991 update of PAF 2.2 includes the ability to Focus
  30.           on fields without any data in them. You simply type the word
  31.           EMPTY in the field on the Focus search screen. This is handy if
  32.           you want to create a list of records lacking birthdate
  33.           information, for example.
  34.       
  35.           However, there is a quirk in PAF's ability to focus on empty
  36.           DATE fields. If the cursor has passed through the field during
  37.           the data entry process, the field is not empty in the computer's
  38.           eye. Nothing shows up on the data entry screen or on reports,
  39.           but PAF has modified one of the bytes in the record, replacing
  40.           an ASCII 00 with an ASCII 02.
  41.           
  42.           This invisible byte has no apparent use. Its position in the
  43.           date field is normally occupied by "date modifier" codes for
  44.           "abt", "bef" or "aft"; the 02 code means there is no modifier.
  45.           But since there is no date, there is no need to even insert a
  46.           code. Perhaps it is what I call a "dinosaur bone", a relic of
  47.           something with more significance in the distant past. It does
  48.           not interfere with most functions, but it does fool PAF's
  49.           ability to find records with empty date fields, because there
  50.           is "something" there (02) instead of "nothing" (00).
  51.           
  52.           PAFEMPTY simply takes a quick trip through your database and
  53.           replaces the ASCII 02 with an ASCII 00 in the four date fields,
  54.           if the field is otherwise empty. A status report shows the
  55.           number of records examnined and the number of changes made.
  56.           
  57.           You should run PAFEMPTY just prior to all PAF sessions where
  58.           you plan to focus on empty date fields. This is in case you
  59.           have recently edited some records and the cursor has passed
  60.           through some empty date fields. It's hard to avoid that!
  61.  
  62.  
  63.       --  APPLICATION NOTE 
  64.       
  65.           You can use the Focus feature of PAF to make a birthday list
  66.           for the living people in your database.
  67.           
  68.           There are several ways you can gather the list. Howver, I have
  69.           found that the "Bef" and "Aft" date qualifiers don't always
  70.           behave quite as I expect. The following steps should work well
  71.           in most databases.
  72.           
  73.           1) Add ALL records to the focus list.
  74.         
  75.           2) Change from ADD to REMOVE.
  76.           
  77.           3) Remove all those born "Bef 1900" (or date of your choice).
  78.              Do not enter the quotes.
  79.           
  80.           4) The list still includes those with unknown birth dates, so
  81.              next remove all those with EMPTY birth dates.
  82.              
  83.           5) Remove all those who died "Aft 1900".
  84.           
  85.           6) Look at the list and manually remove the ones you don't
  86.              want to keep. There may be some people who have died, but
  87.              you have not entered a date yet. Or they may not deserve
  88.              a birthday greeting from you because they haven't sent you
  89.              that Family Group Sheet you requested nine months ago!
  90.              On the other hand, maybe a greeting from you would perk 
  91.              them up.
  92.              
  93.           7) Print the report. Use the default report format or design
  94.              your own with just the name and birthdate.
  95.  
  96.           It would be nice to get the report sorted by month of birth so
  97.           you could page through a calendar and write in the birthdays.
  98.           Unfortunately, there's no easy way to do this. 
  99.           
  100.           If you are facile with word processors and database programs,
  101.           you can print the report to disk and change the month names to
  102.           their numeric equivalents with your word processor. Be sure to
  103.           use a leading 0 (for example 01, not just 1, for January);
  104.           otherwise the sort order will be 1,10,11,12,2,3,4,5,6,7,8,9!
  105.           That reminds me a bit of the story about the uncle quizzing
  106.           his young nephew. "Do you know the names of all the months?"
  107.           "Yep." "Good! Tell them to me in alphabetical order!"
  108.           
  109.           Then you can sort the file. First remove all the headers and
  110.           footers and lines without any data. You will need a program
  111.           which can sort on two keys, the column containing the month and
  112.           the column containing the day. Some word processors, such as
  113.           WordPerfect, can do this, or you can use special sort programs
  114.           such as QSORT, a shareware program. Alternatively, you can
  115.           import the file into a database program which can read "tables"
  116.           and sort on the month and day fields.
  117.           
  118.                                          
  119.       --  A FINAL WORD (OR TWO)
  120.  
  121.           PAFEMPTY is a copyrighted program. The author grants permission
  122.           to copy and share the program with others provided that no
  123.           changes and no charges (beyond actual expenses) are made.
  124.  
  125.           If you find the program useful, a small contribution (even a
  126.           few stamps!) to the author will encourage development of future
  127.           PAF and GEDCOM utilities. Send suggestions, bug reports, and
  128.           contributions to
  129.  
  130.                                  Ann Turner
  131.                                  418 Gilbert
  132.                                  Menlo Park, CA 94025
  133.  
  134.           PAFEMPTY may also be ordered directly from the author for $4.00
  135.           to cover shipping and handling. 
  136.           
  137.           Thanks to Don Umberger, who posted a BBS message about this problem 
  138.           on the FidoNet GENSOFT echo.
  139.  
  140.