home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CP/M
/
CPM_CDROM.iso
/
mbug
/
mbug073.arc
/
GENELOGY.LBR
/
NOMEN.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1979-12-31
|
2KB
|
67 lines
* NOMEN.CMD finds Record Nos. when given 22/6/86
* (will accept full or shortened First names but full, only, Surnames)
SET INDEX TO a:names
STORE 5 TO lines
STORE t TO notfound
DO WHILE notfound
STORE " " TO mlast
STORE " " TO mfirst
@ 5,0 SAY CHR(27)+"Y"
@ 5,2 SAY "First Name/s may be abbreviated."
@ 6,2 SAY "Enter First Names with a Capital & then lower case,"
@ 7,2 SAY "Surname in Capitals, except for Mc and Mac, (eg. McLEOD, MacNALLY)"
@ 10,25 SAY "First Name/s ? " GET mfirst
@ 12,25 SAY " SURNAME ? " GET mlast
READ NOUPDATE
STORE TRIM(mfirst) TO mfirst
STORE TRIM(mlast) TO mlast
@ 14,0
STORE mlast-mfirst TO sought
FIND &sought
DO CASE
CASE # = 0
@ 14,20 SAY TRIM(mfirst)+" "+TRIM(mlast)+" NOT FOUND"
@ 16,20 SAY "Press <RETURN> to continue"
SET CONSOLE OFF
WAIT
SET CONSOLE ON
LOOP
CASE # > 0
STORE f TO notfound
ENDCASE
ENDDO
@ 5,0 SAY CHR(27)+"Y"
? " RCD FIRST NAMES SURNAME BORN"
?? " MARRIED DIED"
?
STORE lines+2 TO lines
DO WHILE surname-firstnms = sought
DISPLAY OFF STR(#,4)+" "+firstnms+surname+borndate+weddate+dieddate
STORE lines+1 TO lines
IF lines > 20
?
? "More : Press <RETURN> when ready"
SET CONSOLE OFF
WAIT
SET CONSOLE ON
@ 5,0 SAY CHR(27)+"Y"
? " RCD FIRST NAMES SURNAME BORN"
?? " MARRIED DIED"
?
STORE 7 TO lines
ENDIF
SKIP
ENDDO
?
STORE lines+1 TO lines
STORE " " TO mno
SET CONFIRM ON
@ lines+1,1 say "Record No. of Interest ? "
DO WHILE VAL(mno) < 1 .OR. VAL(mno) > &xfin
@ lines+1,26 GET mno
READ NOUPDATE
ENDDO
SET CONFIRM OFF
SET INDEX TO
RETURN