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
/
MBUG102.ARC
/
SALES.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1979-12-31
|
1KB
|
44 lines
*SALES.PRG
*A PROGRAM TO EXTRACT FROM THE ARCHIVES SALES DETAILS OF PARTICULAR ITEMS
*FOR REORDERING PURPOSES
SET TALK OFF
SET INTENSITY OFF
ERASE
RELEASE ALL
DO WHILE T
STORE ' ' TO CODEA
STORE ' ' TO PRIN
ERASE
SET PRINT OFF
@ 1,0 SAY 'WHAT IS CODE (FROM PRICELIST) OF THE PRODUCT TO SEARCH FOR' GET ;
CODEA
@ 2,0 SAY 'PRESS RETURN TO EXIT'
READ
IF CODEA=' '
RETURN
ENDIF
USE PRICELIS INDEX PRICECOD
STORE TRIM(CODEA) TO CODEA
FIND &CODEA
IF #=0
@ 5,0 SAY 'PRODUCT NOT FOUND ,TRY AGAIN'
WAIT
LOOP
ENDIF
@ 2,0 SAY ITEM
@ 3,0 SAY 'PRESS ..P.. TO PRINT , ANY KEY TO SHOW ON SCREEN ONLY' GET PRIN
READ
IF PRIN='P'
SET PRINT ON
ENDIF
USE DATARCH
? '**********************LIST OF ORDERS RECEIVED****************************'
?
? 'QTY. ITEM SPECIFICS DATE'
?
LIST OFF ALL FOR CODE=CODEA QTY:ORD,ITEM,ORD:COM,DATE:ORD
EJECT
SET PRINT OFF
ENDDO
RETURN