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
/
MBUG098.ARC
/
USER0.LBR
/
REPTMEN.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1979-12-31
|
2KB
|
53 lines
* File:- REPTMEN.CMD
* Report Menu.
* By, J.L.Read. Merrylands. NSW.
* Date:- 22/08/87
* Update:-
STORE T TO LOOK1
DO WHILE LOOK1
ERASE
@ 1,25 SAY"********** REPORTS **********"
@ 3,5 SAY"REPORT MENU"
@ 3,62 SAY"Date:- "+ DATE()
@ 4,5 SAY"-------------"
SET INTEN ON
@ 6,26 SAY">>> REPORT FORM LISTING <<<"
SET INTEN OFF
@ 7,5 SAY"Options:-"
@ 9,12 SAY"-====================================================-"
@ 11,15 SAY"1 --> REPORT - ALL RECORDS. (By Surname Alph)"
@ 12,15 SAY"2 --> REPORT - ALL RECORDS. (Ref.No Numb.Ord)"
@ 13,15 SAY"3 --> REPORT - SELECTED RECORDS. (By Surname)"
@ 14,15 SAY"4 --> REPORT - SINGLE RECORD.(By Reference No)"
@ 15,15 SAY"5 --> RETURN - TO THE MASTER MENU"
@ 17,12 SAY"-====================================================-"
SET TALK OFF
STORE 0 TO CHOICE1
DO WHILE CHOICE1 <1 .OR. CHOICE1 >5
STORE 0 TO CHOICE1
@ 20,5 SAY"SELECT OPTION:-"
@ 20,21 GET CHOICE1 PICTURE "9"
@ 23,38 SAY"oOo"
READ
DO CASE
CASE CHOICE1= 1
DO REPTLST
CASE CHOICE1= 2
DO REPTREF
CASE CHOICE1= 3
DO REPTSEL
CASE CHOICE1= 4
DO REPTONE
CASE CHOICE1= 5
RELEASE CHOICE1,LOOK1,CHOICE2,LOOK2
RETURN
ENDCASE
IF CHOICE1 <1 .OR. CHOICE1 >5
SET INTEN ON
@ 22,23 SAY"ILLEGAL OPTION < Select 1 to 5 >"
SET INTEN OFF
ENDIF
ENDDO CHOICE1
ENDDO LOOK1
RETURN