home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CP/M
/
CPM_CDROM.iso
/
mbug
/
mbug073.arc
/
GENELOGY.LBR
/
FAHNLOOP.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1979-12-31
|
896b
|
37 lines
* FAHNLOOP.CMD
DO WHILE a < 2*b
DO CASE
CASE $(n,4*a,4) <> '0000'
GO val($(n,4*a,4))
STORE STR(#,4) TO subj
IF fath> 0
GO fath
IF fath>0 .OR. moth >0
STORE f TO nomore
ENDIF
STORE n+str(#,4) TO n
STORE str(2*a,2)+'. ' TO idnumb
STORE t TO male
DO fahnprnt
ELSE
STORE n+'0000' TO n
ENDIF
GO &subj
IF moth > 0
GO moth
IF fath>0 .OR. moth >0
STORE f TO nomore
ENDIF
STORE n+str(#,4) TO n
STORE str(2*a+1,2)+'. ' TO idnumb
DO fahnprnt
ELSE
STORE n+'0000' TO n
ENDIF
OTHERWISE
STORE n+'00000000' TO n
ENDCASE
STORE a+1 TO a
ENDDO
?