home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.barnyard.co.uk
/
2015.02.ftp.barnyard.co.uk.tar
/
ftp.barnyard.co.uk
/
cpm
/
walnut-creek-CDROM
/
MBUG
/
MBUG098.ARC
/
USER0.LBR
/
SILVWED.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1979-12-31
|
3KB
|
114 lines
* File:- SILVWED.CMD
* Report Form Listing, Wedding Anniversary.
* By, J.L.Read. Merrylands. NSW.
* Date:- 23/11/87
* Update:-
* Version 1.2
ERASE
SET TALK OFF
SET INTEN ON
@ 4,25 SAY">>> REPORT FORM LISTING <<<"
SET INTEN OFF
@ 12,23 SAY"Wedding Anniversary For Any Year"
@ 22,1 SAY"Print Anniversary List, <Y> or <N> "
SET CONSOLE OFF
WAIT TO COMMAND
SET CONSOLE ON
IF !(COMMAND)= "Y"
@ 14,32 SAY"LOADING FILE."
@ 22,0
DO B:SELEC
USE B:PERSONS INDEX B:NAME
@ 14,0
STORE T TO ONEREC2
DO WHILE ONEREC2
STORE 0 TO MBDAY
STORE 0 TO MSUB
@ 7,27 SAY"&MFAMLY"
@ 10,23 SAY"Enter <CR> To Return To Menu."
@ 15,24 SAY"Enter The Current Year -" GET MBDAY PICTURE "9999"
@ 16,24 SAY"Enter No.Of Years Married-" GET MSUB PICTURE "99"
@ 22,1 SAY"Press RETURN When Ready."
SET CONFIRM ON
READ
SET CONFIRM OFF
IF MBDAY =0
CLEAR
RESTORE FROM MEMRET
RETURN
ENDIF MBDAY
STORE MBDAY-MSUB TO MTAKE
STORE STR(MTAKE,4) TO MMIN
@ 22,0
@ 22,1 SAY"Screen Display or Printer <S> or <P>."
SET CONSOLE OFF
WAIT TO COMMAND
SET CONSOLE ON
IF !(COMMAND) ="P"
@ 22,0
SET INTEN ON
@ 22,1 SAY" TURN YOUR PRINTER ON "
SET INTEN OFF
@ 22,25 SAY"Press <RETURN> When Ready "
SET CONSOLE OFF
WAIT
SET CONSOLE ON
@ 10,0
@ 15,0
@ 16,0
STORE STR(MBDAY,4) TO MMBDAY
STORE STR(MSUB,2) TO MMSUB
@ 10,31 SAY"Printing, WAIT."
@ 14,26 SAY"Year Of Marriage :- &MMIN"
@ 22,0
@ 22,1 SAY"Printing Wedding Anniversary For Year:- "+MMBDAY+" Years ;
Married:- "+MMSUB+" "
SET CONSOLE OFF
SET PRINT ON
? " &OUT &MFAMLY &IN"
?
? " Wedding Anniversarys For Year:- "+MMBDAY
? " Number Of Years Married :- "+MMSUB
? " Married During The Year Of :- &MMIN &COMP"
?
REPORT FORM GENREP FOR $(STR(SPSE1:DATE,8),1,4) = '&MMIN' .AND. ;
$(STR(SPSE2:DATE,8),8,1) ='0' .AND. $(STR(DEATH:DATE,8),8,1) ='0' .OR. ;
$(STR(SPSE2:DATE,8),1,4) = '&MMIN' .AND. $(STR(SPSE3:DATE,8),8,1) ='0' ;
.OR. $(STR(SPSE3:DATE,8),1,4) ='&MMIN' PLAIN
?
? "&NORM"
EJECT
SET PRINT OFF
SET CONSOLE ON
RELEASE MBDAY,MSUB,MTAKE,MMIN,MMBDAY,MMSUB
@ 10,0
@ 14,0
@ 22,0
* Screen Display
ELSE
ERASE
STORE STR(MSUB,2) TO MMSUB
STORE STR(MBDAY,4) TO MMBDAY
@ 1,0 SAY"Wedding Anniversarys:- "+MMSUB+" Years. Married During "+MMIN+" ;
Current Year "+MMBDAY+" "
?
DISPLAY ALL LAST:NAME,FIRST:NAME,MID:NAME,".",NICK:NAME,REF:NO FOR ;
$(STR(SPSE1:DATE,8),1,4)='&MMIN'.AND.$(STR(SPSE2:DATE,8),8,1)='0';
.OR.$(STR(SPSE2:DATE,8),1,4)='&MMIN'.AND.$(STR(SPSE3:DATE,8),8,1)='0';
.OR.$(STR(SPSE3:DATE,8),1,4)='&MMIN' OFF
@ 22,0 SAY"Press <RETURN> To Continue."
SET CONSOLE OFF
WAIT
SET CONSOLE ON
ERASE
SET INTEN ON
@ 4,25 SAY">>> REPORT FORM LISTING <<<"
SET INTEN OFF
RELEASE MBDAY,MSUB,MTAKE,MMIN,MMSUB,MMBDAY
ENDIF
ENDDO
ELSE COMMAND <> "Y"
RELEASE COMMAND
ENDIF
RETURN