| 1 |
/* |
| 2 |
* @progname zombies.ll |
| 3 |
* @version 1995-06 |
| 4 |
* @author H. V<a-umlaut>is<a-umlaut>nen |
| 5 |
* @category |
| 6 |
* @output Text |
| 7 |
* @description |
| 8 |
|
| 9 |
zombies - a list of people who should be dead but who are not. |
| 10 |
This program lists all persons who have been born over 100 years |
| 11 |
and who have a birth event but not a dead event. |
| 12 |
|
| 13 |
Birth year is output first, so that you can sort the output file by |
| 14 |
|
| 15 |
sort file |
| 16 |
|
| 17 |
|
| 18 |
Written by H. V<a-umlaut>is<a-umlaut>nen, June 1995. |
| 19 |
*/ |
| 20 |
|
| 21 |
proc main () |
| 22 |
{ |
| 23 |
forindi(indi, num) { |
| 24 |
set(birt,0) |
| 25 |
set(dead,0) |
| 26 |
if (b, birth(indi)) {set(birt,1)} |
| 27 |
if (d, death(indi)) {set(dead,1)} |
| 28 |
if (and(eq(birt,1), eq(dead,0))) { |
| 29 |
if (le(atoi(year(b)),1894)) { |
| 30 |
year(b) " " fullname(indi,0,1,50) " " date(b) "\n" |
| 31 |
} |
| 32 |
} |
| 33 |
} |
| 34 |
} |