1010 REM By: Melvin O. Duke. Updated 26 June, 1983.
1020 REM Open the Persons File
1030 OPEN "a:persfile" AS #1 LEN = 256
1040 FIELD 1, 5 AS F1$, 20 AS F2$, 30 AS F3$, 2 AS F4$, 5 AS F5$, 5 AS F6$, 5 AS F7$, 11 AS F8$, 18 AS F9$, 16 AS F10$, 16 AS F11$, 11 AS F12$, 18 AS F13$, 16 AS F14$, 16 AS F15$, 11 AS F16$, 18 AS F17$, 16 AS F18$, 16 AS F19$
1050 REM open the Marriages File
1060 OPEN "a:marrfile" AS #2 LEN = 128
1070 FIELD 2, 5 AS M1$, 5 AS M2$, 5 AS M3$, 5 AS M4$, 11 AS M5$, 18 AS M6$, 16 AS M7$, 16 AS M8$, 45 AS M9$
1080 REM Read the Marriage Records
1090 CLS : LOCATE 21,1
1100 PRINT "Listing the Records in the Marriages File"
1110 REC.COUNT = 0
1120 GOSUB 1140
1130 GOTO 1210
1140 LPRINT " Listing the Records in the Marriages File ";DATE$;" ";TIME$
1150 LPRINT
1160 LPRINT " REC No. FATHER";
1170 LPRINT TAB(42);" No. MOTHER"
1180 LPRINT " --- --- ------";
1190 LPRINT TAB(42);" --- ------"
1200 RETURN
1210 FOR I = 1 TO 200
1220 GET #2,I
1230 REM verify if valid record
1240 TT1 = CVS(M1$)
1250 IF TT1 < 1 THEN 1430
1260 REC.COUNT = REC.COUNT + 1
1270 LOCATE 23,1 : PRINT "Listing Record:"; TT1
1280 LPRINT USING "####"; TT1;
1290 REM husband
1300 TT2 = CVS(M2$)
1310 IF TT2 = 0 THEN GOSUB 1740 ELSE GET #1, TT2 : GOSUB 1450
1320 REM print the father
1330 LPRINT TAB(7);
1340 LPRINT USING "####"; TT2;
1350 LPRINT " " + T2$ + ", " + T3$;
1360 REM wife
1370 TT3 = CVS(M3$)
1380 IF TT3 = 0 THEN GOSUB 1740 ELSE GET #1, TT3 : GOSUB 1450
1390 LPRINT TAB(42);
1400 LPRINT USING "####"; TT3;
1410 LPRINT " " + T2$ + ", " + T3$
1420 IF REC.COUNT MOD 55 = 0 THEN LPRINT CHR$(12);: GOSUB 1140
1430 NEXT I
1440 GOTO 1950
1450 REM Routine to Extract Personal Information
1460 T1 = CVS(F1$)
1470 T2$ = F2$
1480 FOR J = 1 TO LEN(F2$) -1
1490 IF RIGHT$(T2$,1)=" " THEN T2$ = LEFT$(T2$,LEN(T2$)-1) ELSE J = LEN(F2$)-1
1500 T3$ = F3$
1510 NEXT J
1520 FOR J = 1 TO LEN(F3$) -1
1530 IF RIGHT$(T3$,1)=" " THEN T3$ = LEFT$(T3$,LEN(T3$)-1) ELSE J = LEN(F3$)-1