| 1 |
/* |
| 2 |
* @progname marriages1.ll |
| 3 |
* @version 1.0 |
| 4 |
* @author Wetmore, Manis |
| 5 |
* @category |
| 6 |
* @output Text, 80 cols |
| 7 |
* @description |
| 8 |
* |
| 9 |
* select and produce an a output report of all marriages in |
| 10 |
* the database, with date of marriage if known. |
| 11 |
* |
| 12 |
* marriages1 |
| 13 |
* |
| 14 |
* Code by Tom Wetmore, [email protected] |
| 15 |
* With modifications by: Cliff Manis |
| 16 |
* |
| 17 |
* This report works only with the LifeLines Genealogy program |
| 18 |
* |
| 19 |
* version one of this report was written by Tom Wetmore, in 1990, |
| 20 |
* |
| 21 |
* select and produce an a output report of all marriages in |
| 22 |
* the database, with date of marriage if known. |
| 23 |
* |
| 24 |
* Output is an ASCII file, and may be printed using 80 column format. |
| 25 |
* |
| 26 |
* An example of the output may be seen at end of this report. |
| 27 |
*/ |
| 28 |
|
| 29 |
proc main () |
| 30 |
{ |
| 31 |
indiset(idx) |
| 32 |
forindi(indi, n) { |
| 33 |
if (and(male(indi),gt(nspouses(indi),0))) { |
| 34 |
addtoset(idx,indi,0) |
| 35 |
print("y") |
| 36 |
} else { |
| 37 |
print("n") |
| 38 |
} |
| 39 |
} |
| 40 |
print(nl()) |
| 41 |
print("beginning sort") |
| 42 |
print(nl()) |
| 43 |
namesort(idx) |
| 44 |
print("ending sort") |
| 45 |
print(nl()) |
| 46 |
col(1) "Male Person" |
| 47 |
col(30) "Date" |
| 48 |
col(50) "Female Person" |
| 49 |
col(1) |
| 50 |
"-----------------------------------------" |
| 51 |
"-------------------------------------" |
| 52 |
forindiset(idx,husb,val,n) { |
| 53 |
col(1) fullname(husb, 1,0,29) |
| 54 |
spouses(husb,wife,famv,m) { |
| 55 |
col(30) trim(date(marriage(famv)), 20) |
| 56 |
col(50) fullname(wife, 1,0,29) |
| 57 |
} |
| 58 |
print(".") |
| 59 |
} |
| 60 |
nl() |
| 61 |
print(nl()) |
| 62 |
} |
| 63 |
|
| 64 |
/* Sample output of this report. |
| 65 |
|
| 66 |
Male Person Date Female Person |
| 67 |
------------------------------------------------------------------------------ |
| 68 |
BARTH, Johann Ludwig ____, Hanna |
| 69 |
BIRD, Jacob ____, Mrs. |
| 70 |
BIRD, John SHRADER, Elizabeth |
| 71 |
BOWERS, Anderson ABT 1828 COWAN, Lurina Viney "Vina" |
| 72 |
BOWERS, James ____, Martha |
| 73 |
BRADSHAW, John F. CLENDENIN, Agnes "Annie" |
| 74 |
CANTER, Henry B. ____, Polina |
| 75 |
CANTER, James H. 20 APR 1867 WHITEHORN, Martha Marie |
| 76 |
CASON, David ca 1790 ____, Mary |
| 77 |
|
| 78 |
*/ |
| 79 |
|
| 80 |
/* End of Report */ |
| 81 |
|