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
/
MBUG108.ARC
/
ADLABEL.LBR
/
ADLABS2.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1979-12-31
|
5KB
|
230 lines
* File:- ADLABS2.CMD
* Label printer,All labels. Surname, (Alph order)
* J.L.Read. Merrylands. NSW.
* Date:- 05/04/87
* UPDATE:-
ERASE
SET TALK OFF
@ 1,14 SAY"********** MAILING ADDRESS LABEL PRINTER **********"
@ 3,5 SAY"LABELS A to Z"
@ 3,61 SAY"Date:- "+ DATE()
SET INTEN ON
@ 6,20 SAY" ADDRESS LABELS BY SURNAME or BUSINESS "
SET INTEN OFF
@ 8,5 SAY"Options:-"
@ 10,13 SAY"-===================================================-"
@ 11,16 SAY"A ----> NAME/ADDRESS LABELS, WITHIN AUSTRALIA"
@ 12,16 SAY"B ----> NAME/ADDRESS LABELS, FOR OVERSEAS"
@ 13,16 SAY"C ----> BUSINESS ADDRESS LABELS, WITHIN AUST."
@ 14,16 SAY"D ----> BUSINESS ADDRESS LABELS, FOR OVERSEAS"
@ 15,13 SAY"-===================================================-"
@ 23,38 SAY"oOo"
STORE T TO LAB1
DO WHILE LAB1
@ 17,27 SAY"< Press RETURN To Exit >"
STORE " " TO SEC
@ 20,5 SAY"Enter Letter <A to Z> " GET SEC PICTURE "!"
SET CONFIRM ON
READ
SET CONFIRM OFF
IF $(SEC,1,1)= " "
RELEASE LAB1,COMMAND,SEC
ERASE
@ 11,32 SAY"CLOSING FILE "
RETURN
ENDIF $(SEC,1,1)= " "
@ 17,45
@ 17,45 SAY"Abort >"
@ 18,5 SAY"Label Select &SEC"
@ 20,0
@ 22,0
@ 20,5 SAY"Enter Option "
SET CONSOLE OFF
WAIT TO COMMAND
STORE !(COMMAND) TO COMMAND
SET CONSOLE ON
@ 17,0
@ 18,0
IF !(COMMAND) = " "
LOOP
ENDIF
DO CASE
CASE COMMAND = "A"
@ 20,0
@ 20,5 SAY"Print Address Labels, (Aust.) <Y> or <N> "
SET CONSOLE OFF
WAIT TO COMMAND
SET CONSOLE ON
IF !(COMMAND)= "Y"
@ 20,0
SET INTEN ON
@ 20,6 SAY" TURN YOUR PRINTER ON "
SET INTEN OFF
@ 20,29 SAY"Press <RETURN> When Ready "
SET CONSOLE OFF
WAIT
SET CONSOLE ON
USE LABEL INDEX SNAMIND
GO TOP
@ 20,0
@ 20,6 SAY"Printing Labels, WAIT."
SET CONSOLE OFF
SET PRINT ON
DO WHILE .NOT. EOF
IF AUST= "A".AND. CLASS= "N".AND. SNAME= "&SEC"
?
? " ",TITLE,TRIM(INITAL),TRIM(SNAME)+"."
? " ",TRIM(STREET)+"."
? " ",TRIM(LOCATN)+"."
? " ",TRIM(STATE)+"."," ",PCODE+"."
?
?
?
?
ENDIF
SKIP
ENDDO
SET PRINT OFF
SET CONSOLE ON
USE
@ 20,0
ELSE COMMAND <> "Y"
ENDIF
@ 20,0
LOOP
CASE COMMAND = "B"
@ 20,0
@ 20,6 SAY"Print Address Labels, (Overseas) <Y> or <N>."
SET CONSOLE OFF
WAIT TO COMMAND
SET CONSOLE ON
IF !(COMMAND) = "Y"
@ 20,0
SET INTEN ON
@ 20,6 SAY" TURN YOUR PRINTER ON "
SET INTEN OFF
@ 20,29 SAY"Press RETURN When Ready."
SET CONSOLE OFF
WAIT
SET CONSOLE ON
USE LABEL INDEX SNAMIND
GO TOP
@ 20,0
@ 20,6 SAY"Printing Labels, WAIT."
SET CONSOLE OFF
SET PRINT ON
DO WHILE .NOT. EOF
IF AUST= "O".AND. CLASS= "N".AND. SNAME= "&SEC"
?
? " ",TITLE,TRIM(INITAL),TRIM(SNAME)+"."
? " ",TRIM(STREET)+"."
? " ",TRIM(LOCATN)+"."
? " ",STATE," ",TRIM(COUNTRY)+"."
?
?
?
?
ENDIF
SKIP
ENDDO
SET PRINT OFF
SET CONSOLE ON
USE
@ 20,0
ELSE !(COMMAND) <> "Y"
ENDIF
@ 20,0
LOOP
CASE COMMAND = "C"
@ 20,0
@ 20,6 SAY"Print Business Address Labels, (Aust.) <Y> or <N>."
SET CONSOLE OFF
WAIT TO COMMAND
SET CONSOLE ON
IF !(COMMAND) = "Y"
@ 20,0
SET INTEN ON
@ 20,6 SAY" TURN YOUR PRINTER ON "
SET INTEN OFF
@ 20,29 SAY"Press RETURN When Ready."
SET CONSOLE OFF
WAIT
SET CONSOLE ON
USE LABEL INDEX COMPIND
GO TOP
@ 20,0
@ 20,6 SAY"Printing Labels, WAIT."
SET CONSOLE OFF
SET PRINT ON
DO WHILE .NOT. EOF
IF AUST= "A".AND. CLASS="B".AND. COMPANY= "&SEC"
? " ",TITLE,TRIM(INITAL),SNAME
? " ",TRIM(COMPANY)+"."
? " ",TRIM(STREET)+"."
? " ",TRIM(LOCATN)+"."
? " ",TRIM(STATE)+"."," ",PCODE+"."
?
?
?
?
ENDIF
SKIP
ENDDO
SET PRINT OFF
SET CONSOLE ON
USE
@ 20,0
ELSE COMMAND <> "Y"
ENDIF
@ 20,0
LOOP
CASE COMMAND= "D"
@ 20,0
@ 20,6 SAY"Print Business Address Labels, (Overseas) <Y> or <N>."
SET CONSOLE OFF
WAIT TO COMMAND
SET CONSOLE ON
IF !(COMMAND) = "Y"
@ 20,0
SET INTEN ON
@ 20,6 SAY" TURN YOUR PRINTER ON "
SET INTEN OFF
@ 20,29 SAY"Press RETURN When Ready."
SET CONSOLE OFF
WAIT
SET CONSOLE ON
USE LABEL INDEX COMPIND
GO TOP
@ 20,0
@ 20,6 SAY"Printing Labels, WAIT "
SET CONSOLE OFF
SET PRINT ON
DO WHILE .NOT. EOF
IF AUST="O".AND. CLASS="B".AND. COMPANY= "&SEC"
? " ",TITLE,TRIM(INITAL),SNAME
? " ",TRIM(COMPANY)+"."
? " ",TRIM(STREET)+"."
? " ",TRIM(LOCATN)+"."
? " ",STATE," ",TRIM(COUNTRY)+"."
?
?
?
?
ENDIF
SKIP
ENDDO
SET PRINT OFF
SET CONSOLE ON
USE
@ 20,0
ELSE COMMAND <> "Y"
ENDIF
@ 20,0
LOOP
ENDCASE
SET INTEN ON
@ 22,5 SAY"Options are <A B C D> Only."
SET INTEN OFF
ENDDO
RETURN
ESS LABELS, WITHIN AUSTRAL