home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CP/M
/
CPM_CDROM.iso
/
mbug
/
mbug073.arc
/
GENELOGY.LBR
/
DTWOWIFE.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1979-12-31
|
2KB
|
87 lines
* DTWOWIFE.CMD
* Deals with case of 1st. subject having two spouses (spice?)
* Called from DESCEND.CMD
?
DO dprint
STORE lines+1 TO lines
GO spouse1
? tab1
&wedprint
DO dprint
STORE lines+1 TO lines
IF kid>0
GO kid
STORE # TO msubj
? spc+spc&g
DO dprint
STORE lines+1 TO lines
IF sib > 0
DO WHILE sib>0
GO sib
? spc+spc&g
DO dprint
STORE lines+1 TO lines
IF spouse1>0 .AND. VAL(g)=1
STORE # TO mstop
ENDIF
IF mstop=0
STORE mpar&g TO mstop
ENDIF
ENDDO
ENDIF
ENDIF
?
STORE lines+1 TO lines
GO mstart
?
DO dprint
STORE lines+1 TO lines
GO spouse2
? tab1
&wedprint
DO dprint
STORE lines+1 TO lines
IF kid>0
GO kid
STORE # TO end
? spc+spc&g
DO dprint
STORE lines+1 TO lines
IF sib>0
DO WHILE sib>0
GO sib
? spc+spc&g
DO dprint
STORE lines+1 TO lines
ENDDO
ENDIF
? fence
STORE lines+1 TO lines
ENDIF
IF sib=0
GO mstart
GO kid
IF spouse1>0
STORE # TO msubj
ELSE
IF sib>0
GO sib
DO WHILE spouse1=0 .AND. sib>0
GO sib
ENDDO
STORE # TO msubj
ENDIF
ENDIF
GO mstart
GO kid
IF sib>0
DO WHILE sib>0
GO sib
IF spouse1>0
STORE # TO mstop
ENDIF
ENDDO
ENDIF
DO dnext
ENDIF