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
/
PRINTIND.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1979-12-31
|
1KB
|
43 lines
* PRINTIND.PRG - PRINTS CATEGORIES FOR PROF1, PROF2, PROF3 FOR MAILING LIST
* PROGRAM (C) COPYRIGHT DECEMBER 3, 1983 PHILIP K. PERLMAN
ERASE
SET TALK OFF
STORE 55 TO N
STORE 0 TO INDEX
STORE 1 TO INDIC
DO WHILE INDIC <= 3
STORE 'PROF'-STR(INDIC,1) TO PROF
STORE 'PROF'-STR(INDIC,1) TO MNDX
USE MAIL INDEX &MNDX
GO TOP
STORE &PROF TO KEY
SET PRINT ON
STORE T TO TRUE
DO WHILE TRUE
?
?
? PROF, "CATEGORIES"
?
DO WHILE .NOT. EOF .AND. INDEX < N
IF &PROF <> ' ' .AND. &PROF <> KEY
? &PROF
STORE INDEX + 1 TO INDEX
STORE &PROF TO KEY
ENDIF
SKIP
ENDDO
IF INDEX >= N
EJECT
STORE 0 TO INDEX
ENDIF
IF EOF
STORE F TO TRUE
ENDIF
ENDDO
SET PRINT OFF
STORE INDIC + 1 TO INDIC
ENDDO |"
@ 22,9 SAY "| PLEASE CHOOSE ONE OPTION: |"
@ 22,55 GET NEXT
@ 23,9 SAY "+==============================================================+" |"
@ 18,9 SAY "|