| 1 |
/* |
| 2 |
* @progname ssdi-search-list.ll |
| 3 |
* @version 1.0 |
| 4 |
* @author Larry Soule ([email protected]) |
| 5 |
* @category |
| 6 |
* @output Text |
| 7 |
* @description |
| 8 |
* |
| 9 |
* This LifeLines report program searches for individuals in the database |
| 10 |
* that are missing some birth or death information that may be in the |
| 11 |
* social security death index (SSDI). Right now this searches for: |
| 12 |
* 1. Deaths after 1960 that do not have locations |
| 13 |
* 2. Births after 1880 with no death event |
| 14 |
* |
| 15 |
* These two sets of people are sorted by name and printed out in the |
| 16 |
* report in ASCII. |
| 17 |
* |
| 18 |
* The first set of people, those with deaths after 1960 that do not |
| 19 |
* have locations, is the most promising to search for. The second set |
| 20 |
* right now contains many living people but also other possible |
| 21 |
* entries in the SSDI. |
| 22 |
* |
| 23 |
* The social security death index is available at your local Family History |
| 24 |
* Library or on-line at http://www.ancestry.com/ssdi/ |
| 25 |
* |
| 26 |
* Version 1.0 - November 1996, Larry Soule ([email protected]) |
| 27 |
* |
| 28 |
* Sample report output (note: all spouses are listed for female individuals |
| 29 |
* since they may be listed under their maiden name, or any other married name) |
| 30 |
* |
| 31 |
|
| 32 |
2207 individuals in the database. |
| 33 |
52 have known death dates but not locations. |
| 34 |
331 have known birth dates but no death dates or locations. |
| 35 |
|
| 36 |
**** List of individuals with death dates but not locations |
| 37 |
Charles Edwin ALBRIDGE b. 27 NOV 1915 Pennsylvania |
| 38 |
d. 03 DEC 1981 |
| 39 |
|
| 40 |
Evelyn Carter ALBRIDGE b. 26 MAR 1905 Pennsylvania |
| 41 |
d. 06 OCT 1982 |
| 42 |
Married to Chester Goy RAVER |
| 43 |
... |
| 44 |
|
| 45 |
**** List of individuals with birth dates but not death dates or location |
| 46 |
Alice Alamanda ALBRIDGE b. 04 FEB 1902 Easton, Northampton Co., PA |
| 47 |
d. |
| 48 |
... |
| 49 |
|
| 50 |
*/ |
| 51 |
|
| 52 |
/* These two sets are built up */ |
| 53 |
global(missingDeathPlaceSet) |
| 54 |
global(missingDeathEventSet) |
| 55 |
|
| 56 |
proc main() { |
| 57 |
/* Generate the two sets of people */ |
| 58 |
call generateSetToSearch() |
| 59 |
|
| 60 |
/* Now print the two sets */ |
| 61 |
"**** List of individuals with death dates but not locations" nl() |
| 62 |
call printSet(missingDeathPlaceSet) |
| 63 |
|
| 64 |
nl() nl() |
| 65 |
"**** List of individuals with birth dates but not death dates or location" nl() |
| 66 |
call printSet(missingDeathEventSet) |
| 67 |
} |
| 68 |
|
| 69 |
/* |
| 70 |
* Generate the two sets of individuals |
| 71 |
*/ |
| 72 |
proc generateSetToSearch() { |
| 73 |
indiset(missingDeathPlaceSet) |
| 74 |
indiset(missingDeathEventSet) |
| 75 |
|
| 76 |
forindi(indi_v, count_v) { |
| 77 |
set(deathEv, death(indi_v)) |
| 78 |
set(birthEv, birth(indi_v)) |
| 79 |
if (deathEV, death(indi_v)) { |
| 80 |
/* |
| 81 |
* A death record exists - see if the location is empty and |
| 82 |
* the date is after 1960 |
| 83 |
*/ |
| 84 |
if (and(eq(0, strlen(place(deathEv))), |
| 85 |
gt(atoi(year(deathEv)), 1960))) { |
| 86 |
addtoset(missingDeathPlaceSet, indi_v, 0) |
| 87 |
} |
| 88 |
} else { |
| 89 |
/* |
| 90 |
* No death record exists - see if the birth year |
| 91 |
* is after 1880 |
| 92 |
*/ |
| 93 |
if (birthEV, birth(indi_v)){ |
| 94 |
if (gt(atoi(year(birthEv)), 1880)) { |
| 95 |
addtoset(missingDeathEventSet, indi_v, 0) |
| 96 |
} |
| 97 |
} |
| 98 |
} |
| 99 |
} |
| 100 |
|
| 101 |
/* Output some statistics */ |
| 102 |
d(count_v) " individuals in the database." nl() |
| 103 |
d(lengthset(missingDeathPlaceSet)) " have known death dates but not locations." nl() |
| 104 |
d(lengthset(missingDeathEventSet)) " have known birth dates but no death dates or locations." nl() nl() |
| 105 |
|
| 106 |
/* Sort the two sets by name */ |
| 107 |
namesort(missingDeathPlaceSet) |
| 108 |
namesort(missingDeathEventSet) |
| 109 |
} |
| 110 |
|
| 111 |
/* |
| 112 |
* Print the set of individuals passed in the argument printSet. |
| 113 |
* This uses a simple name, birth, death format, followed by a list |
| 114 |
* of spouses for females |
| 115 |
*/ |
| 116 |
proc printSet(printSet) { |
| 117 |
forindiset(printSet, personIndi, personValue, iteration) { |
| 118 |
set(birthEv, birth(personIndi)) |
| 119 |
set(deathEv, death(personIndi)) |
| 120 |
fullname(personIndi, 1, 1, 30) col(30) " b. " date(birthEv) col(50) place(birthEv) |
| 121 |
nl() col(30) " d. " date(deathEv) col(50) place(deathEv) nl() |
| 122 |
if (female(personIndi)) { |
| 123 |
if (gt(nspouses(personIndi), 0)) { |
| 124 |
spouses(personIndi, spouse_v, fam_v, count) { |
| 125 |
" Married to " name(spouse_v) nl() |
| 126 |
} |
| 127 |
} |
| 128 |
} |
| 129 |
nl() |
| 130 |
} |
| 131 |
} |