| 1 |
/* |
| 2 |
* @progname fam10c.ll |
| 3 |
* @version 1.0 |
| 4 |
* @author Manis |
| 5 |
* @category |
| 6 |
* @output Text |
| 7 |
* @description |
| 8 |
* |
| 9 |
* Generates a Family Report for one family. |
| 10 |
* |
| 11 |
* fam10c |
| 12 |
* by: Cliff Manis <[email protected]> |
| 13 |
* Family Report for LifeLines |
| 14 |
*/ |
| 15 |
|
| 16 |
proc main () |
| 17 |
{ |
| 18 |
getfam(fam) |
| 19 |
dayformat(0) |
| 20 |
monthformat(4) |
| 21 |
dateformat(0) |
| 22 |
set(tday, gettoday()) |
| 23 |
set (nl,nl()) |
| 24 |
set(h,husband(fam)) |
| 25 |
set(w,wife(fam)) |
| 26 |
col(55) "Date: " stddate(tday) nl |
| 27 |
col(0) "Family Report (fam10)" |
| 28 |
nl nl |
| 29 |
col(0) "HUSBAND: " fullname(h,1,1,50) |
| 30 |
col(63) "(RN=" key(h) ")" |
| 31 |
nl nl |
| 32 |
set(evt, birth(h)) |
| 33 |
col(0) "Born: " stddate(evt) col(25) "Place: " place(evt) |
| 34 |
set(evt, marriage(fam)) |
| 35 |
col(0) "Marr: " stddate(evt) col (25) "Place: " place(evt) |
| 36 |
set(evt, death(h)) |
| 37 |
col(0) "Died: " stddate(evt) col(25) "Place: " place(evt) |
| 38 |
nl nl |
| 39 |
col(0) "HUSBAND'S FATHER: " name(father(h)) |
| 40 |
col(63) "(RN=" key(father(h)) ")" |
| 41 |
nl |
| 42 |
col(0) "HUSBAND'S MOTHER: " name(mother(h)) |
| 43 |
col(63) "(RN=" key(mother(h)) ")" |
| 44 |
nl nl |
| 45 |
col(0) "WIFE: " |
| 46 |
if (w) { |
| 47 |
fullname(w,1,1,50) |
| 48 |
col(63) "(RN=" key(w) ")" |
| 49 |
} |
| 50 |
nl nl |
| 51 |
set(evt, birth(w)) |
| 52 |
col(0) "Born: " stddate(evt) col(25) "Place: " place(evt) |
| 53 |
set(evt, death(w)) |
| 54 |
col(0) "Died: " stddate(evt) col(25) "Place: " place(evt) |
| 55 |
nl nl |
| 56 |
col(0) " WIFE'S FATHER: " name(father(w)) |
| 57 |
col(63) "(RN=" key(father(w)) ")" |
| 58 |
col(0) " WIFE'S MOTHER: " name(mother(w)) |
| 59 |
col(63) "(RN=" key(mother(w)) ")" |
| 60 |
nl nl |
| 61 |
col(0) "========================================================================" |
| 62 |
nl |
| 63 |
col(0) "# M/F" col(12) "Childrens Names" col(63) "RECORD NUM" |
| 64 |
nl |
| 65 |
col(0) "========================================================================" |
| 66 |
nl |
| 67 |
children(fam, child, num) { |
| 68 |
col(0) d(num) |
| 69 |
col(4) sex(child) |
| 70 |
col(12) name(child) col(63) "(RN=" key(child) ")" |
| 71 |
col(4) "Born:" col(13) stddate(birth(child)) |
| 72 |
col(26) place(birth(child)) |
| 73 |
nl |
| 74 |
|
| 75 |
col(4) "Died:" col(13) stddate(death(child)) |
| 76 |
col(26) place(death(child)) |
| 77 |
nl |
| 78 |
|
| 79 |
families(child, fvar, svar, num) { |
| 80 |
if (eq(num,1)) { |
| 81 |
col(4) "Marr:" col(13) stddate(marriage(fvar)) |
| 82 |
col(26) if (svar) { name(svar) |
| 83 |
col(63) "(RN=" key(svar) ")" } |
| 84 |
else { " " } |
| 85 |
nl |
| 86 |
} |
| 87 |
} |
| 88 |
if (eq(nfamilies(child),0)) { " " nl } |
| 89 |
col(4) "---------------------------------------------------------" |
| 90 |
} |
| 91 |
} |
| 92 |
|
| 93 |
/* End of Report */ |
| 94 |
/* |
| 95 |
-- |
| 96 |
Cliff Manis K4ZTF Manis/Manes Family History |
| 97 |
Researching: MANIS MANES MANESS MANAS WHITEHORN CANTER BIRD CORBETT NEWMAN |
| 98 |
USMAIL: P. O. Box 33937, San Antonio, Texas 78265-3937 |
| 99 |
INTERNET: [email protected] |
| 100 |
-=> Don't waste time learning the tricks of the trade, learn the trade ! |
| 101 |
Standard Disclaimer: We are not associated with anyone. (PERIOD). (.) |
| 102 |
-- |
| 103 |
*/ |