home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 31
/
CDASC_31_1996_juillet_aout.iso
/
vrac_os2
/
ftree10e.zip
/
LNGEVITY.FTX
< prev
next >
Wrap
Text File
|
1996-05-02
|
1KB
|
49 lines
/*
Family Tree Rexx Script FTX
Copyright (C) 1996 by <Nils Meier>
Please send comments to meier2@athene.informatik.uni-bonn.de
<This script shows the longevity of all persons in the tree
that have a date of birth and death.>
*/
/* Params */
namewidth=40
/* Display Header */
SAY("Longevity Analysis. Today's date :"||DATE())
SAY(.............................................)
namewidth=40
/* Sort Mankind by Name,FirstName */
rc=SORT('L')
/* Display persons in tree */
rc=FIRST()
DO UNTIL rc=0
/* Check if we have Birth & Death (J=JulianDate) */
birth=getBirthDate('J')
IF LENGTH(birth)>0 THEN DO
death=getDeathDate('J')
IF LENGTH(death)>0 THEN DO
/* Say the result*/
result = getName()||','||GetFirstName()
IF LENGTH(result)<namewidth THEN
result=result||COPIES(' ',namewidth-LENGTH(result))
ELSE
result=LEFT(result,namewidth)
SAY(result||' ('||(death-birth)%365||')')
END
END
/* Go for next */
rc=NEXT()
END
/* Done */
RETURN