home *** CD-ROM | disk | FTP | other *** search
/ Share Gallery 1 / share_gal_1.zip / share_gal_1 / GE / GE003C.ZIP / SECTION7.DOC < prev    next >
Text File  |  1990-07-08  |  26KB  |  489 lines

  1.  
  2.  
  3.  
  4.       VII. Export\Import Utilities.
  5.  
  6.       Whenever you spend a great deal of time entering information into a 
  7.       file on your PC, there are invariably instances when you would like to 
  8.       be able to get to that information for processing by another program.  
  9.       When the file is in a format that was designed especially for the 
  10.       program used to originally create it, it may be very difficult or 
  11.       impossible to use it with any other software.  At such times you may 
  12.       get the feeling that your own information is being held "captive" 
  13.       within the "non-standard" format file.
  14.  
  15.       To alleviate the anxiety of users, most software that employs special 
  16.       formats for storing information will supply utility programs for 
  17.       "converting" information into a more generatlly usable form.  The 
  18.       process for converting information from a "special" format file to a 
  19.       "standard" format file is called "EXPORT" while the term "IMPORT" 
  20.       refers to a process of converting information from a "standard" format 
  21.       file to a "special" (non-standard) format file.  
  22.  
  23.       This section describes two FHS programs that allow you to EXPORT 
  24.       family file information into "text" files that can be used by other 
  25.       software.  One of these utilities also supplies an IMPORT procedure 
  26.       for moving (possibly large quantities of) information from a "text" 
  27.       file into an FHS family file.  One of these programs uses the GEDCOM 
  28.       (GEnealogical Data COMmunication) format for sharing information with 
  29.       other genealogy software.  The other creates files that can be used 
  30.       with a shareware organization chart utility for printing graphical 
  31.       descendant charts.
  32.  
  33.  
  34.       A. GEDCOM Export/Import Program (F3-D-1)
  35.  
  36.       The PAFGEDCM Export/Import program allows you to transfer information 
  37.       between Family History System files and family files maintained by 
  38.       other software packages that support the GEDCOM format.  The "Export" 
  39.       option converts information from a FHS family file into an expanded 
  40.       ASCII (or standard character) format and places it in a text file, 
  41.       TRANSFER.GED.  Information in the text file can then be "Imported" 
  42.       into a new empty set of family files, or may be appended to an 
  43.       existing set of family files.  In the latter case, the system's file 
  44.       maintenance program may then be used to establish relationships 
  45.       between old and new individual records.  All family relationships 
  46.       between transferred records are preserved across the export/import 
  47.       procedure.
  48.  
  49.       The format of the transfer dataset is based upon the descriptions of 
  50.       the format provided by the LDS Family History Department as imple-
  51.       mented in the Personal Ancestor File (PAF) software, v2.0 and v2.1.  
  52.       This format prescribes that each data item (Name, BirthDate, etc.) 
  53.       appear on a separate line in the transfer dataset, with related items 
  54.       being grouped by associated "level numbers" and each individual data 
  55.       item labeled by a 3-4 character "Tag".  
  56.  
  57.       Actually, the GEDCOM formats introduced by PAF 2.0 and 2.1 have some 
  58.       significant differences, both in the TAGs used and the methods for 
  59.  
  60.  
  61.                                      57
  62.  
  63.  
  64.  
  65.       representing family and marriage relationships.  When this GEDCOM 
  66.       option was first added to FHS, in Sept 88, only PAF 2.1 was actually 
  67.       using the new format.  The other GEDCOM supporting packages were 
  68.       designed to the PAF 2.0 specifications.  Since PAF 2.1 could handle 
  69.       either format, there seemed to be no loss in generality by having the 
  70.       FHS utility able to import either PAF 2.0 or 2.1 format GEDCOM files, 
  71.       but export information using the 2.0 format.
  72.  
  73.       In the subsequent year and a half, many other genealogy packages added 
  74.       GEDCOM utilities, but nearly all embraced the 2.1 format only.  
  75.       Therefore, in the March 1990 update, the FHS utility was modified to 
  76.       permit exporting or importing information using either GEDCOM 
  77.       description.  The format used during an export operation is determined 
  78.       from the SOURce and DEST items in the GEDCOM header record.  If the 
  79.       SOURce is "PAF" or the DEST is "PAF 2.0", the GEDCOM file is processed 
  80.       using the rules introduced with PAF 2.0.  Otherwise it will be 
  81.       processed using the rules introduced with PAF 2.1 and continued with 
  82.       PAF 2.2.  During an import operation you will be asked whether the 
  83.       file being imported follows the rules for PAF 2.0 or PAF 2.1.
  84.  
  85.       1. Program Operation
  86.          Upon entry to the Export/Import program you will notice that the 
  87.          screen is formatted similarly to others in the system.  In the 
  88.          upper left corner are listed the datasets that may participate in 
  89.          the various program options.  These include the NAM and OTH data-
  90.          sets from a family file, an index dataset (name records may be 
  91.          exported in ID# sequence or in an indexed sequence), a SELECTion 
  92.          dataset created by the system's Search/Select/LIST program or the 
  93.          Family Group Report Program, and a new TRANSFER dataset.  The 
  94.          identification of the datasets to be used may be changed using 
  95.          program option F1 as usual.
  96.  
  97.          In the upper right corner of the display are the familiar printer 
  98.          parameters.  These are used when the program option (F6) is 
  99.          selected for printing the information in the TRANSFER dataset.  
  100.          The printer parameters may be changed using program option F2.
  101.  
  102.          In the "viewing area" in the lower right corner of the screen are 
  103.          listed the various types of information (by family file record 
  104.          type) that may be transferred.  The number next to each record type 
  105.          will be hilited or not depending on whether or not that type of 
  106.          information is to be processed during the next selected import or 
  107.          export procedure.  Although Name Records are always processed, you 
  108.          may adjust the selection of other types of information using 
  109.          program option F3.  (Note: this program will only process those FHS 
  110.          record types that provide information that is found in the PAF 
  111.          implementaton of GEDCOM.)
  112.  
  113.          The lower left part of the display lists the program options that 
  114.          may be function key selected.  These include:
  115.                       F1  Change File Names
  116.                       F2  Change Printer Parameters
  117.                       F3  Change Information Table
  118.                       F4  Export Information to Transfer dataset
  119.                       F5  Import Information from Transfer dataset
  120.  
  121.  
  122.                                      58
  123.  
  124.  
  125.  
  126.                       F6  List Dataset of Exported Information
  127.                       F9  Return to Main Menu
  128.  
  129.          Options F1,F2, & F9 have either been described above or should be 
  130.          familiar from their similarity to options in other programs of the 
  131.          system.  The other options will be described in the following 
  132.          sections.
  133.  
  134.       2. Changing the Table of Types of Information to be Processed
  135.          
  136.          As described above, the lower right corner of the display has a 
  137.          "viewing area" in which are listed the different types of 
  138.          information that are stored in the Family History System datasets.  
  139.          These include:   
  140.                          0.Name Records
  141.                          1.Places (Birth/Death/Marriage/Divorce Locations)
  142.                          2.Spouse Records
  143.                          3.Educational Records
  144.                          4.Occupational Records
  145.                          5.Military Records
  146.                          6.Medical Records
  147.                          7.Address Information
  148.                 and      8.Comment Lines          
  149.  
  150.          Program option "F3" permits you to indicate which of these types of 
  151.          information are to participate in an import or export process.  A 
  152.          reason for wanting to restrict the information transfered might be 
  153.          that you want to exclude sensitive information among the remarks.
  154.  
  155.          When you select program option F3, the hilited border moves to the 
  156.          lower right corner of the screen and the message:
  157.                Enter 1,2 or 8 to Toggle Transfer of Information Type
  158.          appears at the bottom of the screen.  If you press one of the 
  159.          indicated number keys you will find that the corresponding 
  160.          character in the list of information types will be alternately 
  161.          hilited or displayed in normal intensity.  If the character is 
  162.          hilited, it indicates that the information type is to be processed 
  163.          during the next export or import procedure.  When you have hilited 
  164.          just the items that you wish to process, press the Enter or Return 
  165.          (or ESC) key to terminate the process and return to the selection 
  166.          of another program option.
  167.  
  168.       3. Exporting Data from your Family file
  169.  
  170.          (NOTE: Prior to using the Export option, I would recommend that you 
  171.          use the Validation option (F3-E) to verify that there are no 
  172.          inconsistent relationships between the family file records that 
  173.          could cause problems during the export procedure.  The export 
  174.          procedure will also assume that husbands have a sex code of "M" and 
  175.          that only one of the participants in a marriage is a "M"ale.)
  176.  
  177.          Selecting program option F4 initiates an export process in which 
  178.          information is copied from your family files into the TRANSFER 
  179.          dataset.  You will first be asked whether you want to:
  180.              Export   1) ALL Records   2) SELECTed Records
  181.  
  182.  
  183.                                      59
  184.  
  185.  
  186.  
  187.          If you choose to export selected records, you must have previously 
  188.          used the system's Search/Select/LIST program (Main Menu option F2-E 
  189.          of the extended system) or the Family Group Report Program to 
  190.          create a "selection table" and save it in the SELECT dataset. 
  191.  
  192.          You will next be asked to:
  193.                Select:  1)INDEXed    2)ID # Sequence
  194.          that is, you must specify whether the exported individual name 
  195.          records are to be in indexed order or in ID# sequence.  To export 
  196.          in an indexed order, you must first have created the INDEX file 
  197.          using Main Menu option F3-F of the extended system.  If you have 
  198.          entered information from family group worksheets, then ID# sequence 
  199.          would be the best choice to permit efficient processing of the 
  200.          family files created from the Transfer dataset.  After indicating 
  201.          the order of export, the program builds the "Sequence Reference 
  202.          Table" that identifies which name records are to be processed and 
  203.          in what order. 
  204.  
  205.          Next, the viewing area in the lower right corner of the screen is 
  206.          cleared and formatted to permit entry of descriptive information 
  207.          that will be stored in the transfer dataset's header record.  This 
  208.          information includes the Name, Address & Phone number of the 
  209.          "submitter", the source and destination system identifiers, and up 
  210.          to 3 lines of comments.  If the SOURce system is "PAF" or the DEST 
  211.          system is "PAF 2.0", the information will be exported in PAF 2.0 
  212.          GEDCOM format, otherwise the rules for PAF 2.1 GEDCOM files will be 
  213.          used.  You may choose not to enter anything in the header record 
  214.          for datasets only used for local transfer of information.  Press 
  215.          the F1 key when you are ready to continue with the export 
  216.          procedure.  
  217.  
  218.          You will next be asked to:
  219.                 Enter Drive ID (A,B,C,...) for POINTER Workfile
  220.          This workfile is a temporary dataset needed only for the duration 
  221.          of the export operation to place information concerning the rela-
  222.          tionships between records in the TRANSFER dataset.  It is needed 
  223.          because of the differences in the ways records are connected in the 
  224.          FHS family file and in the PAF GEDCOM file.  A RAM disk would be a 
  225.          good place for this dataset if you have one available.
  226.  
  227.          The process of building the POINTER workfile is accompanied by the 
  228.          sequential display of the messages:
  229.              Building POINTER Workfile
  230.              Reversing Direction of Sibling Pointers (only PAF 2.0 format)
  231.              Finding Family Record of Parents
  232.          If there are children in the file whose parents are not married, a 
  233.          dummy marriage record will be created for the parents because 
  234.          within PAF GEDCOM files parent-child relationships are established 
  235.          through the marriage record of the parents.  In this case, at the 
  236.          termination of the building of the pointer workfile, the message:
  237.               xxx NEW Parent Family Records Created...
  238.          will be displayed.  You must press a key to acknowledge the message 
  239.          before the export process will continue.
  240.  
  241.          When the export process begins, the viewing area in the lower right 
  242.  
  243.  
  244.                                      60
  245.  
  246.  
  247.  
  248.          corner of the screen will again be cleared and the list of Infor-
  249.          mation to Transfer will be redisplayed.  As the export process 
  250.          continues, the number of records exported of each type will be 
  251.          shown next to the line describing the record type.  You will see 
  252.          that family records are created only after all the name records 
  253.          have been processed.
  254.  
  255.          Perhaps I should note that I have chosen to include a few "non-
  256.          standard" data items to allow for information that seemed too sig-
  257.          nificant to omit.  In particular, an adoptive parent relationship 
  258.          will be noted by tags of ADFA (for ADoptive FAther) or ADMO (for 
  259.          ADoptive MOther), and comments under a marriage record will be 
  260.          exported as NOTEs under the GEDCOM family record...Although indi-
  261.          vidual record ID's in the GEDCOM file are numbered sequentially, 
  262.          beginning with I1, the original ID # of the source record in the 
  263.          FHS file is given as an RFN tag (in PAF 2.0 format) or a REFN tag 
  264.          (in PAF 2.1 format) under the INDI record.
  265.          
  266.          The export procedure may be terminated at any time by pressing the 
  267.          ESCape key, though a partially created transfer dataset should not 
  268.          be used in a subsequent import procedure.
  269.  
  270.          When the process is finished, the message:
  271.                      Export finished at hh:mm:ss...
  272.          will be displayed at the bottom of the screen.  Pressing any key 
  273.          will "clean up" the display and allow you to select another program 
  274.          option.
  275.  
  276.       4. Importing Information into your Family Files
  277.  
  278.          The process of moving information from a TRANSFER dataset into an 
  279.          existing set of family datasets is begun by selecting program 
  280.          option "F5".  The family datasets being used must have been 
  281.          previously "created" using the system's file maintenance program 
  282.          but may be otherwise empty.
  283.  
  284.          At the beginning of the import procedure, the program opens the 
  285.          family file datasets and checks to see that all "header" infor-
  286.          mation is valid (indicating that the file has been "created") and 
  287.          consistent (i.e. the Name and Misc datasets "match"). 
  288.  
  289.          If name records have been previously placed in the family file, the 
  290.          program displays the message:
  291.                "Imported Name Records will begin with ID=nnn..."
  292.          All imported information will be placed after existing information 
  293.          in the family file.  You may later use the file maintenance program 
  294.          to establish relationships between old and new name records.  If 
  295.          you had intended to import the information into an "empty" file but 
  296.          forgot to change the names of the family datasets before beginning 
  297.          the import procedure, you may terminate the process now by pressing 
  298.          the ESCape key.  Pressing any other key will permit the process to 
  299.          continue.
  300.  
  301.          The program must keep a table of name and marriage records created 
  302.          so that it may subsequently go back and update the internal 
  303.  
  304.  
  305.                                      61
  306.  
  307.  
  308.  
  309.          "pointers" to these records.  Therefore, you will be asked to:
  310.                "Enter Maximum for Name Record ID in Transfer File: 1000"
  311.            and "Enter Maximum for Family Record ID in Transfer File: 1000"
  312.          The number entered (1000 is the default) tells the program how big 
  313.          the table needs to be to hold this information.  The program will 
  314.          not import records that would cause it to exceed the capacity of 
  315.          this table.  The numbers entered don't necessarily indicate how 
  316.          many name or marriage records are to be imported, but rather the 
  317.          highest value that is used for an ID of a name or marriage record 
  318.          in the TRANSFER file that is being imported.  
  319.  
  320.          You will next be asked if you want to:
  321.                "Print Unprocessed Data Lines (Y/N)"
  322.          Although you will be shown a "running total" of the number of 
  323.          incoming data lines in the TRANSFER dataset that have not been 
  324.          processed (either because you have requested not to process the 
  325.          type of information recorded on those lines, or because the program 
  326.          doesn't recognise the type of information on the line) and these 
  327.          unprocessed lines will also be displayed on the bottom line of the 
  328.          screen, you may also request that the program write a copy of the 
  329.          bypassed lines (together with the value of the most recent Name 
  330.          record "identifier") to an attached printer.  If you respond "Y" or 
  331.          "y" to this question you must have a printer available and made 
  332.          ready to receive output.
  333.  
  334.          You will also be asked whether you want to:
  335.                   Import Long PLACE Names into Notes? (Y/N)
  336.          If you respond with a "Y" then birth, death or marriage place names 
  337.          which exceed the FHS limit of 22 characters will be placed in the 
  338.          COMMENTs under the name or marriage record, and the literal "see 
  339.          Notes" will be stored in the PLACE field in the file.  If you reply 
  340.          "N" then long place names will be truncated to 22 characters, but 
  341.          the incoming line will also be listed among the "unprocessed" data 
  342.          lines to call attention to the fact.
  343.  
  344.          If there is Baptismal or Burial information in the transfer dataset 
  345.          then it will also be imported into comment records under the 
  346.          individual's NAME Record.  
  347.  
  348.          The program next reads the transfer dataset for header information.  
  349.          If no header information is found a message is displayed and you 
  350.          are asked whether to continue or not.  Otherwise the viewing area 
  351.          in the lower right corner of the screen is formatted to display the 
  352.          header information and you are asked whether to:
  353.                           "Continue with Import...(Y/N)"
  354.  
  355.          If you choose to continue, the list of types of information that 
  356.          can be imported is redisplayed, followed by another line for 
  357.          "unprocessed data lines".  During the input procedure a running 
  358.          total is displayed of each of these data types next to the line 
  359.          describing it.
  360.  
  361.          Near the end of the import procedure, you will see the message: 
  362.                  "Updating Family Record Pointers"
  363.          which lets you know that the program is updating the internal 
  364.  
  365.  
  366.                                      62
  367.  
  368.  
  369.  
  370.          spouse record pointers from the table previously mentioned.  
  371.          Following this, the message:
  372.                  "Updating Other Family & Sibling Pointers"
  373.             and  "Final Cleanup"
  374.          document the beginning of other cleanup phases.
  375.  
  376.          At the end of the import procedure the message:
  377.                   "Import Finished at hh:mm:ss..."
  378.          is displayed.  Pressing any key will result in the display's being 
  379.          "cleaned up" and the program will be ready to process another 
  380.          option.  I would recommend that following the completion of each 
  381.          import procedure, you run the system's pointer validation option 
  382.          (Main Menu option F3-E) against the updated file to verify that all 
  383.          relationships between records in the TRANSFER dataset are 
  384.          consistent.  
  385.  
  386.       5. Producing Listings of GEDCOM format exported data
  387.  
  388.          Program option F6 may be used to produce listings of the contents 
  389.          of the TRANSFER dataset.  You may route the output to the screen, 
  390.          for verification of an export procedure or examination of a 
  391.          TRANSFER dataset prior to import, or to the printer.  As usual, the 
  392.          printing may be "paused" by pressing any key, and then may be 
  393.          terminated (by pressing the ESCape key) or continued (by pressing 
  394.          any other key).  Thse listings will be in "outline" format with 
  395.          each data item offset according to its "level number".
  396.  
  397.  
  398.       B. ORGCHART Export Program (F3-D-2)
  399.  
  400.          Late in 1988 I ran across a shareware program which produced rather 
  401.          nice organization charts in "inverted tree" format.  The data used 
  402.          to produce the charts is taken from a simple text file, created by 
  403.          a text editor or word processor (in non-document mode).  Because 
  404.          the charts were in a format that appeared useful for representing 
  405.          family descendancy, I wrote a little program for "Exporting" 
  406.          information for descendants in an FHS family file to an ORG format 
  407.          text file that could be used for printing such a descendant chart. 
  408.          That is the program invoked by Main Menu option F3-D-2.
  409.  
  410.          While the procedure had some short-comings, I felt that it may 
  411.          prove useful for some among you.  Of course you must have a copy of 
  412.          the ORGCHART program to produce the charts, and if you decide to 
  413.          add this to your "genealogy toolkit", it will be necessary for you 
  414.          to send a ($20.00) registration fee to its author.  While the 
  415.          program is available from public software libraries (in particular, 
  416.          "The Public (Software) Library" in Houston Texas, you should also 
  417.          be able to order copies from the author:
  418.              Jerming Lee, P.O. Box 102, Chappaqua, NY  10514-0102
  419.  
  420.          The operation of the "ORGCHART Export program" is similar to other 
  421.          programs in the system.  You must have first created a descendant 
  422.          "relationship" work file, DESCNDNT.WRK, using Main Menu option F2-
  423.          A-2.  You may then use option F3 of this program to export 
  424.          information from your FHS family file, using the DESCNDNT.WRK file 
  425.  
  426.  
  427.                                      63
  428.  
  429.  
  430.  
  431.          as a guide, into the ORGCHART file.
  432.  
  433.  
  434.          When you select program option F3, you will be asked to:
  435.              Select Name Format:  1) SURNAME, Given   2) Given Surname
  436.          The first option will result in the name appearing on 2 lines 
  437.          within the "information box" on the chart, with the surname, in 
  438.          CAPS, centered on the first line and the Given name centered below 
  439.          it.  If the second option is chosen, the name will appear in a 
  440.          single line of the box.  The first option may result in slightly 
  441.          more compact charts.
  442.  
  443.          You will also be asked if you wish to:
  444.               Include BIRTH/DEATH Dates? (Y/N)
  445.          If you include dates, they will appear centered below the name in 
  446.          the format:    14 Oct 1884-12 Nov 1969
  447.  
  448.          You will have the option to:
  449.                Include NAME of Most Recent Spouse?  (Y/N)
  450.          and if you you choose this and have also chosen the first form for 
  451.          the Name, you will be asked if you wish to:
  452.                Substitute Husband's Surname for WIFE's (Y/N)
  453.          Choosing "Y" for this option may produce slightly more compact 
  454.          charts.  If you do substitute the husband's surname for the wife, 
  455.          and the wife is the "subject" of the box of information, then an 
  456.          "*" will appear to the right of the SURNAME at the top of the box, 
  457.          to note that it is the married surname and not the surname at 
  458.          birth.
  459.  
  460.          After the creation of the ORG workfile is complete, you may choose 
  461.          to use option F8 (if you have DOS 3.3 or later) to temporarily go 
  462.          into DOS mode for running the ORGCHART program.  After completing 
  463.          your work there, you can return to FHS by entering the EXIT 
  464.          command.  You should be aware that the ORGCHART program is 
  465.          completely separate from FHS.  It does not use the FHS printer 
  466.          or screen tables and any questions about it should be directed to 
  467.          that program's author.
  468.  
  469.  
  470.          While the charts that can be produced in this manner are somewhat 
  471.          limited and there is no effort to denote "crossed" lines of 
  472.          descendancy, a few persons who have tried preliminary versions of 
  473.          this program have expressed satisfaction with the results.  Perhaps 
  474.          you will find them pleasing as well.
  475.  
  476.  
  477.  
  478.  
  479.  
  480.  
  481.  
  482.  
  483.  
  484.  
  485.  
  486.  
  487.  
  488.                                      64
  489.