home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CP/M
/
CPM_CDROM.iso
/
mbug
/
mbug104.arc
/
RECP15.LQR
/
EXTFIL.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1979-12-31
|
3KB
|
134 lines
* File:- EXTFIL.CMD
* RECORDED MUSIC DIRECTORY 45 RPM
* J.L.Read. Merrylands.
* DATE:- 15/03/86
* UPDATE:- 21/05/86
ERASE
SET INTEN OFF
@ 11,29 SAY"ONE MOMENT PLEASE "
USE EXTPLY
SET INDEX TO EXTIND
ERASE
SET TALK OFF
GO TOP
DO EXTSCR
DO EXTGET
CLEAR GETS
STORE T TO LEVEL6
DO WHILE LEVEL6
@ 3,0 SAY"ENTER COMMAND "
SET CONSOLE OFF
WAIT TO COMMAND
STORE !(COMMAND) TO COMMAND
SET CONSOLE ON
IF COMMAND = "M"
RELEASE COMMAND,RECORD
ERASE
@ 11,33 SAY"CLOSING FILE "
USE
RETURN
ENDIF
DO CASE
CASE COMMAND = "A"
@ 3,0
@ 3,0 SAY"Adding a New Record "
APPEND BLANK
DO EXTGET
READ
CLEAR GETS
@ 3,0
CASE COMMAND = "E"
@ 3,0
@ 3,0 SAY"Edit Record "
DO EXTGET
READ
CLEAR GETS
@ 3,0
CASE COMMAND = "B"
SKIP - 1
DO EXTGET
CLEAR GETS
CASE COMMAND = "F"
SKIP
DO EXTGET
CLEAR GETS
CASE COMMAND = "D"
@ 3,0
@ 3,0 SAY"Delete Record <Y> or <N> "
SET CONSOLE OFF
WAIT TO COMMAND
SET CONSOLE ON
IF COMMAND = "Y"
@ 3,0
@ 3,0 SAY"Deleting Record, PLEASE WAIT "
DELETE
PACK
GO TOP
DO EXTGET
CLEAR GETS
ELSE COMMAND <> "Y"
DO EXTGET
CLEAR GETS
ENDIF
@ 3,0
CASE COMMAND = "S"
@ 3,0
STORE " " TO RECORD
@ 3,0 SAY"Enter Artist's Name. (First 6 Char)" GET RECORD PICTURE "!!!!!!"
SET CONFIRM ON
READ
SET CONFIRM OFF
FIND &RECORD
IF # = 0
@ 3,45 SAY"Record Not Found. Press <RETURN> "
SET CONSOLE OFF
WAIT
SET CONSOLE ON
ELSE # > 0
DO EXTGET
CLEAR GETS
ENDIF
@ 3,0
ENDCASE
ENDDO
RETURN
GO TOP
DO EXTGET
CLEAR GETS
ELSE COMMAND <> "Y"
DO EXTGET
CLEAR GETS
ENDIF
@ 3,0
CASE COMMAND = "S"
STORE " " TO RECORD
@ 3,0 SAY"Enter Artist's Name. (First 6 Char)" GET RECORD PICTURE "!!!!!!"
SET CONFIRM ON
READ
SET CONFIRM OFF
FIND &RECORD
IF # = 0
@ 3,45 SAY"Record Not Found. Press <RETURN> "
SET CONSOLE OFF
WAIT
SET CONSOLE ON
ELSE # > 0
DO EXTGET
CLEAR GETS
ENDIF
@ 3,0
ENDCASE
ENDDO
RETURN