YSCLENV ;DALISC/MJD - YS*5.01*22 PATCH ENVIRNMENT CHECK ROUTINE
;;5.01;MENTAL HEALTH;**18,22**;Dec 30, 1995
EN ; Does not prevent loading of the transport global.
;Environment check is done only during the install.
QUIT:'$G(XPDENV)
D CHECK
;
EXIT I $G(XPDQUIT) W !!,$$CJ^XLFSTR("Install Environment Check FAILED",80)
I '$G(XPDQUIT) W !!,$$CJ^XLFSTR("Environment Check is Done...",80)
K VER,RN,LN2,YSPATCH
QUIT
;
CHECK ;
I $S('$G(IOM):1,'$G(IOSL):1,$G(U)'="^":1,1:0) W !,$$CJ^XLFSTR("Terminal Device is not defined",80),!! S XPDQUIT=2 Q
I $S('$G(DUZ):1,$D(DUZ)[0:1,$D(DUZ(0))[0:1,1:0) W !!,$$CJ^XLFSTR("Please Log in to set local DUZ... variables",80),! S XPDQUIT=2 Q
I '$D(^VA(200,$G(DUZ),0))#2 W !,$$CJ^XLFSTR("You are not a valid user on this system",80),! S XPDQUIT=2 Q
QUIT
;
VK ;
S VER=$$VERSION^XPDUTL("MENTAL HEALTH")
I '$D(^YSCL(603.01,0))&($G(VER)'=5.01) K DIR
QUIT
;
EOR ;;YS*5.01*22 PATCH ENVIRONMENT CHECK ROUTINE;;
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HYSCLENV 970 printed Oct 16, 2024@18:14:20 Page 2
YSCLENV ;DALISC/MJD - YS*5.01*22 PATCH ENVIRNMENT CHECK ROUTINE
+1 ;;5.01;MENTAL HEALTH;**18,22**;Dec 30, 1995
EN ; Does not prevent loading of the transport global.
+1 ;Environment check is done only during the install.
+2 if '$GET(XPDENV)
QUIT
+3 DO CHECK
+4 ;
EXIT IF $GET(XPDQUIT)
WRITE !!,$$CJ^XLFSTR("Install Environment Check FAILED",80)
+1 IF '$GET(XPDQUIT)
WRITE !!,$$CJ^XLFSTR("Environment Check is Done...",80)
+2 KILL VER,RN,LN2,YSPATCH
+3 QUIT
+4 ;
CHECK ;
+1 IF $SELECT('$GET(IOM):1,'$GET(IOSL):1,$GET(U)'="^":1,1:0)
WRITE !,$$CJ^XLFSTR("Terminal Device is not defined",80),!!
SET XPDQUIT=2
QUIT
+2 IF $SELECT('$GET(DUZ):1,$DATA(DUZ)[0:1,$DATA(DUZ(0))[0:1,1:0)
WRITE !!,$$CJ^XLFSTR("Please Log in to set local DUZ... variables",80),!
SET XPDQUIT=2
QUIT
+3 IF '$DATA(^VA(200,$GET(DUZ),0))#2
WRITE !,$$CJ^XLFSTR("You are not a valid user on this system",80),!
SET XPDQUIT=2
QUIT
+4 QUIT
+5 ;
VK ;
+1 SET VER=$$VERSION^XPDUTL("MENTAL HEALTH")
+2 IF '$DATA(^YSCL(603.01,0))&($GET(VER)'=5.01)
KILL DIR
+3 QUIT
+4 ;
EOR ;;YS*5.01*22 PATCH ENVIRONMENT CHECK ROUTINE;;