home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CP/M
/
CPM_CDROM.iso
/
mbug
/
mbug073.arc
/
GENELOGY.LBR
/
FPRINT2.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1979-12-31
|
1KB
|
103 lines
* FPRINT2.CMD rev. 14/12/85
* 1st 5th gen.
IF fath > 0
GO fath
&dnom
? spc1+l+l+spc1+name
?? "(36)"
? spc1+l+l+spc1+l
ENDIF
* 1st 4th gen.
IF n4 > 0
GO n4
&dnom
? spc1+l+l+name
?? "(18)"
IF moth > 0
? spc1+l+l+l+l
ELSE
? spc1+l+l+l
ENDIF
STORE 0 TO n4
* 2nd 5th gen.
IF moth > 0
GO moth
&unom
? spc1+l+l+l+name
?? "(37)"
? spc1+l+l+l
ENDIF
ENDIF
* 3rd gen.
IF n3 > 0
GO n3
&unom
? spc1+l+name
?? "(9)"
IF moth > 0
? spc1+l+spc1+l
ELSE
? spc1+l
ENDIF
STORE 0 TO n3
IF moth > 0
GO moth
STORE # TO n4
* 3rd 5th gen.
IF fath > 0
GO fath
&dnom
? spc1+l+spc1+l+name
?? "(38)"
? spc1+l+spc1+l+l
ENDIF
ENDIF
ENDIF
* 2nd 4th gen.
IF n4 > 0
GO n4
&unom
? spc1+l+spc1+name
?? "(19)"
IF moth > 0
? spc1+l+spc2+l
ELSE
? spc1+l
ENDIF
STORE 0 TO n4
IF moth > 0
GO moth
&unom
? spc1+l+spc2+name
?? "(39)"
ENDIF
ENDIF
* 1st gen.
IF n1 > 0
GO n1
&dnom
? name
?? "(2)"
IF moth > 0
? l+l
ELSE
? l
ENDIF
STORE 0 TO n1
ENDIF