5 * Revision 1.2 1996/04/24 17:26:47 mclareni
6 * Extend the include file cleanup to dzebra, rz and tq, and also add
7 * dependencies in some cases.
9 * Revision 1.1.1.1 1996/03/06 10:47:23 mclareni
13 #include "zebra/pilot.h"
14 SUBROUTINE RZEND(CHDIR)
16 ************************************************************************
18 * To close all transactions with file CHDIR.
19 * Corresponding directories are dropped
21 * CHDIR Character variable specifying the name of the top directory
22 * to be associated with unit LUN.
26 * Author : R.Brun DD/US/PD
28 * Last mod: 07.12.92 Loglevel manipulation
30 ************************************************************************
31 #include "zebra/zunit.inc"
32 #include "zebra/zstate.inc"
33 #include "zebra/rzcl.inc"
38 *-----------------------------------------------------------------------
40 #include "zebra/q_jbit.inc"
41 #include "zebra/q_jbyt.inc"
46 * Save current directory
53 CALL UCTOH(CHDIR,IHDIR,4,NCHD)
54 CALL ZHTOI(IHDIR,IHDIR,4)
58 IF(.NOT.RZSAME(IHDIR,IQ(KQSP+LRZ+1),4))THEN
64 LOGLV = JBYT(IQ(KQSP+LTOP),15,3)-3
65 IF(LOGLV.GE.0) WRITE(IQLOG,9019) CHDIR
66 9019 FORMAT(' RZEND. called for ',A)
68 * Release lock if update mode
70 IF(JBIT(IQ(KQSP+LTOP),3).NE.0)THEN
77 CALL MZDROP(JQPDVS,LTOP,' ')
83 ELSEIF(NQLOGD.GE.-2)THEN
84 WRITE(IQLOG,1000) CHDIR
85 1000 FORMAT(' RZEND. Unknown directory ',A)