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
/
MBUG061.ARC
/
GETBASE.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1979-12-31
|
1KB
|
46 lines
****** GETBASE.CMD *****
ERASE
RELEASE CkChoice
SET INTENSITY ON
@ 8,15 SAY [*****************************************]
@ 9,15 SAY [* *]
@ 10,15 SAY [*****************************************]
SET INTENSITY OFF
@ 9,17 SAY [CHECK DATA BASE LAST IN USE:]
SET INTENSITY ON
@ 9,46 SAY !('&UseBase')
@ 12,15 SAY [* *]
@ 13,15 SAY [* *]
@ 14,15 SAY [* *]
@ 15,15 SAY [* *]
STORE ' ' TO GetBase
@ 14,45 GET GetBase
SET INTENSITY OFF
@ 13,18 SAY [ENTER DATA BASE TO USE, OR <RETURN>]
@ 14,18 SAY [TO USE THE ABOVE:]
READ
DO WHILE .NOT. FILE('&GetBase')
IF GetBase = ' '
RELEASE GetBase
ERASE
USE &UseBase
DO &CmChoice
RETURN
ELSE
STORE 1 TO N
DO WHILE N < 10
STORE N+1 TO N
ENDDO
SET INTENSITY ON
@ 17,17 SAY [THAT FILE DOES NOT EXIST. TRY AGAIN.]
@ 14,45 GET GetBase
READ
@ 17,0
ENDIF
ENDDO
STORE !('&GetBase') TO UseBase
RELEASE GetBase
ERASE
USE &UseBase
DO &CmChoice
RETURN