/ 
/ 
/                   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 #1
/
/ COPYRIGHT DIGITAL EQUIPMENT CORP., MAYNARD, MASS.  1972.
/
/	3-20-72		W.A. DESIMONE
/
/	RENAME -- FORTRAN CALLABLE SUBROUTINE TO RENAME A FILE.
/
/	CALLING SEQUENCE:
/		CALL RENAME (LUN,FN,EXT,IEV)
/			LUN=LOGICAL UNIT NUMBER
/			FN=FILENAME (1-5 CHARACTERS)
/			EXT=EXTENSION (1-3 CHARACTERS)
/			IEV=EVENT VARIABLE
/
/
	.GLOBL RENAME,.DA,.FTSB
RENAME	0
	JMS*	.DA	/PICK UP CALLER'S ARGUMENTS
	JMP	ARGEND	/SKIP OVER ARGUMENTS.
LUN	0
FLNM	0
EXT	0
EVNTV	0
ARGEND	LAC	EVNTV	/PICK UP EVENT VARIABLE ADDRESS.
	DAC	REQEV	/CLEAR TRANSFER SINCE IT IS OPTIONAL.
	DZM	EVNTV
	LAC*	LUN	/SAVE LUN.
	DAC	REQLUN
	JMS*	.FTSB	/CONVERT FILENAME TO SIXBIT.
	FLNM
	REQFLN
	JMS*	.FTSB
	EXT
	REQEXT
	CAL	RENMCP
	JMP*	RENAME
RENMCP	3700		/FUNCTION 
REQEV	0		/EVENT VARIABLE
REQLUN	0		/LOGICAL UNIT
REQFLN	0		/FILE NAME
	0
REQEXT	0		/EXTENSION
	0
	.END	RENAME
