Debian Codegraph @

reports/soundex1.ll

raw
1 /*
2 * @progname soundex1.ll
3 * @version 1.0
4 * @author Jones
5 * @category
6 * @output Text
7 * @description
8 *
9 * Produces a chart of all surnames in database with corresponding
10 * SOUNDEX codes.
11 * It is designed for 10 or 12 pitch, HP laserjet III, or any
12 * other printer.
13 *
14 * soundex1
15 *
16 * Code by James P. Jones, [email protected]
17 *
18 * This report works only with the LifeLines Genealogy program
19 *
20 * version one of this report was written by James P. Jones, 28 Sep 1992
21 *
22 *
23 * Output is an ASCII file.
24 *
25 * An example of the output may be seen at end of this report.
26 *
27 */
28
29 proc main ()
30 {
31 indiset(idx)
32 forindi(indi,n) {
33 addtoset(idx,indi,n)
34 print(".")
35 }
36 print(nl()) print("indexed ") print(d(n)) print(" persons.")
37 print(nl())
38 print(nl())
39 print("begin sorting") print(nl())
40 namesort(idx)
41 print("done sorting") print(nl())
42
43 col(11) "SOUNDEX CODES OF ALL SURNAMES IN DATABASE" nl()
44 col(1) " " nl()
45 col(1) " " nl()
46 col(16) " Surname Soundex Code" nl()
47 col(16) " ------------- ------------" nl()
48
49 set(last, " ")
50 forindiset(idx,indi,v,n) {
51 if(strcmp(surname(indi), last)) {
52 col(20) upper(surname(indi))
53 col(36) soundex(indi)
54 }
55 set(last,surname(indi))
56 print(".")
57 }
58 nl()
59 print(nl())
60 }
61
62 /* Sample output of this report:
63
64 SOUNDEX CODES OF ALL SURNAMES IN DATABASE
65
66
67 Surname Soundex Code
68 ------------- ------------
69 ABERNATHY A165
70 AHMADVAND-S A531
71 ANDERSON A536
72 ANDREWS A536
73 BAILEY B400
74 BARBIE B610
75 BENNET B530
76
77 */
78
79 /* End of Report */
80