home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CP/M
/
CPM_CDROM.iso
/
mbug
/
mbug073.arc
/
GENELOGY.LBR
/
DNEXT.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1979-12-31
|
2KB
|
51 lines
*DNEXT.CMD called from DESCEND.CMD
DO WHILE msubj # 0
GO msubj
DO CASE
CASE spouse1 > 0 .AND kid > 0
DO dwifekid
CASE spouse1 > 0 .AND. kid = 0
IF myprnt = 'P'
SET CONSOLE OFF
IF lines+8 > mlength
DO WHILE mlength-lines > 0
?
STORE lines+1 TO lines
ENDDO
STORE 0 TO lines
STORE page+1 TO page
? propnl+"Printed "+date()
?? $(STR(0,130),1,125)+"Page "+STR(page,2)+compr
? spc1+spc4+"1x "+"2x "+"3x "+"4x "+;
"5x "+"6x "+"7x "+"8x"
? spc1+spc4+gt+gt+gt+gt+gt+gt+gt+gt
? spc1+spc3+gd+gd+gd+gd+gd+gd+gd+gd+gd
? "Person "+ch+ch+ch+ch+ch+ch+ch+ch+ch+ch
? fence
STORE lines+6 TO lines
ENDIF
SET CONSOLE ON
ENDIF
DO dwifonly
CASE spouse1 = 0
IF msubj=mstart .OR. msubj=mstop
STORE 0 TO msubj
LOOP
ENDIF
IF sib>0
STORE sib TO msubj
LOOP
ELSE
DO WHILE sib=0 .AND. VAL(g)>0
GO mpar&g
STORE STR(VAL(g)-1,1) TO g
ENDDO
IF #=mstart
STORE 0 TO msubj
ELSE
STORE sib TO msubj
ENDIF
ENDIF
ENDCASE
ENDDO