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
/
MBUG105.ARC
/
MAILMEN.LQR
/
XMASLAB.CMD
< prev
Wrap
OS/2 REXX Batch file
|
1979-12-31
|
1KB
|
62 lines
* XMASLAB.PRG PRINTS CHRISTMAS LABELS FOR MAILING LIST PROGRAM (C) COPYRIGHT
* DECEMBER 3, 1983 BY PHILIP K. PERLMAN
SET TALK OFF
ERASE
STORE T TO BEVEL
DO WHILE BEVEL
STORE ' ' TO ANS1
@ 10,5 say "Do you wish to print labels of friends or business (F or B) ?"
@ 10,75 GET ANS1
READ
CLEAR GETS
IF !(ANS1) = 'F' .OR. !(ANS1) = 'B'
STORE F TO BEVEL
ELSE
ENDIF
ENDDO
ERASE
@ 10,5 SAY 'Mount Labels one across by 15/16" high in Printer'
@ 12,5 SAY 'Press any key when ready'
set console off
wait
set console on
IF !(ANS1) = 'F'
USE &DBF1
GO TOP
SET PRINT ON
? CHR(15)
DO WHILE .NOT. EOF
IF FRIEND <> ' '
? TRIM(FIRST), LAST
? ADDR1
? ADDR2
? TRIM(CITY)-"," , STATE, ZIP
?
?
ENDIF
SKIP
ENDDO
? CHR(18)
SET PRINT OFF
RETURN
ENDIF
IF !(ANS1) = 'B'
USE &DBF1
GO TOP
SET PRINT ON
? CHR(15)
DO WHILE .NOT. EOF
IF BUS:XMAS <> ' '
? TRIM(FIRST), LAST
? COMPANY
? ADDR1
? TRIM(CITY)-"," , STATE, ZIP
?
?
ENDIF
SKIP
ENDDO
? CHR(18)
SET PRINT OFF
RETURN
ENDIF