home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CP/M
/
CPM_CDROM.iso
/
mbug
/
mbug073.arc
/
GENELOGY.LBR
/
LPOINTER.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1979-12-31
|
2KB
|
69 lines
* LPOINTER.CMD for a list of records indexed by Name or Recd. No.
* with dates & pointers
DO lgetrec
IF myprnt = "P"
@ 6,0 SAY CHR(27)+'Y'
@ 6,30 SAY "Turn Printer ON"
SET PRINT ON
?? " "
?? CHR(27)+"Q"+CHR(27)+"B"
@ 6,0
ENDIF
STORE ' ' TO order
DO CASE
CASE type = 'N'
IF nom1 # nom2
STORE nom1+" to "+nom2 TO order
ELSE
STORE nom1+"s" TO order
ENDIF
CASE type = 'R'
STORE 'Records '+TRIM(mfirst)+' to '+TRIM(mlst) TO order
ENDCASE
ERASE
STORE 0 TO mlines
? "Printed "+date()+$(mspc,1,106)+"Page "+STR(mpage,2)
?
? order
?
? " RCD SURNAME FIRST NAMES BORN "
?? "MARRIED DIED SP1 SP2 SIB KID FATH MOTH "
?
STORE mlines+6 TO mlines
DO WHILE &mvar <= mlast .AND. .NOT. EOF
DISPLAY #,surname,firstnms,borndate,weddate,dieddate,;
" ",spouse1,spouse2,sib,kid,fath,moth OFF
STORE mlines+1 TO mlines
SKIP
IF type = 'R'
STORE STR(#,4) TO mvar
ENDIF
IF mlines+10 > mlength
SET CONSOLE OFF
DO WHILE mlength-mlines > 0
?
STORE mlines+1 TO mlines
ENDDO
STORE mpage+1 TO mpage
? "Printed "+date()+$(mspc,1,106)+"Page "+STR(mpage,2)
?
? " RCD SURNAME FIRST NAMES BORN "
?? "MARRIED DIED SP1 SP2 SIB KID FATH MOTH"
?
STORE 4 TO mlines
SET CONSOLE ON
ENDIF
ENDDO
?
IF myprnt ='P'
? CHR(27)+"N"+CHR(27)+"A"
ENDIF
SET PRINT OFF
? ' Press <RETURN> when ready'
SET CONSOLE OFF
WAIT
SET CONSOLE ON
SET INDEX TO
ERASE
RETURN