/ 
/ 
/                   FIRST PRINTING, FEBRUARY 1974
/ 
/ THE INFORMATION IN THIS DOCUMENT IS SUBJECT TO 
/ CHANGE WITHOUT NOTICE AND SHOULD NOT BE CONSTRUED
/ AS A COMMITMENT BY DIGITAL EQUIPMENT CORPORATION.
/ DIGITAL EQUIPMENT CORPORATION ASSUMES NO RESPON-
/ SIBILITY FOR ANY ERRORS THAT MAY APPEAR IN THIS
/ DOCUMENT.
/ 
/ THE SOFTWARE DESCRIBED IN THIS DOCUMENT IS FUR-
/ NISHED TO THE PURCHASER UNDER A LICENSE FOR USE ON
/ A SINGLE COMPUTER SYSTEM AND CAN BE COPIED (WITH
/ INCLUSION OF DIGITAL'S COPYRIGHT NOTICE) ONLY FOR 
/ USE IN SUCH SYSTEM, EXCEPT AS MAY OTHERWISE BE PRO-
/ VIDED IN WRITING BY DIGITAL.
/ 
/ DIGITAL EQUIPMENT CORPORATION ASSUMES NO RESPONSIBILITY
/ FOR THE USE OR RELIABILITY OF ITS SOFTWARE ON EQUIP-
/ MENT THAT IS NOT SUPPLIED BY DIGITAL.
/ 
/ COPYRIGHT (C) 1974, BY DIGITAL EQUIPMENT CORPORATION
/ 
/ 
        .EJECT
/ EDIT #4
/
/ COPYRIGHT 1971,1972,1973,1974 DIGITAL EQUIPMENT CORP., MAYNARD, MASS.
/
/ DTREAD                8 JAN 74              H. KREJCI
/						M. HEBENSTREIT
/
/ RSX CHECKOUT PACKAGE 
/
/ SUBROUTINE TO READ A RECORD FROM LUN 37 INTO THE LINE 
/ BUFFER WHOSE ADDRESS FOLLOWS THE JMS.
/
	.GLOBL	DTREAD,LOG
/
DTREAD	0
	LAC*	DTREAD	/SET ADDRESS OF RECORD IN CPB
	DAC	READ+4
	ISZ	DTREAD
	CAL	READ	/QUEUE READ REQUEST FOR LUN 37
	CAL	WAITF
	LAC	EV	/OKAY?
	SMA
	JMP*	DTREAD	/YES -- RETURN
	JMS*	LOG	/NO -- LOG OFF
	.ASCII	"DT READ ERROR ________________________________"<15>
	CAL	CLOSE
	CAL	(10)
/
READ	2600		/READ CPB
	EV
	37
	0
	XX
	400
/
WAITF	20		/WAITFOR CPB
	EV
/
CLOSE	3400	/CLOSE CPB
	0
	37
/
EV	0
/
	.END
