- LR240 ;DALOI/CKA - LR*5.2*240 PATCH ENVIRONMENT CHECK ROUTINE;1/15/2000
- ;;5.2T8;LR;**1018**;Oct 27, 2004
- ;;5.2;LAB SERVICE;**240**;Sep 27,1994
- EN ; Does not prevent loading of the transport global.
- ;Environment check is done only during the install.
- Q:'$G(XPDENV)
- D BMES^XPDUTL($$CJ^XLFSTR("*** Environment check started ***",80))
- D CHECK Q:$G(XPDQUIT)
- EXIT I $G(XPDQUIT) W !!,$$CJ^XLFSTR("Install Environment Check FAILED",IOM)
- I '$G(XPDQUIT) W !!,$$CJ^XLFSTR("Environment Check is Ok ---",IOM)
- K VER,RN,LN2
- Q
- CHECK I $S('$G(IOM):1,'$G(IOSL):1,$G(U)'="^":1,1:0) W !,$$CJ^XLFSTR("Terminal Device is not defined",IOM),!! 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
- S VER=$$VERSION^XPDUTL("LR")
- I VER'>5.1 W !,$$CJ^XLFSTR("You must have LAB V5.2 Installed",IOM),! S XPDQUIT=2 Q
- S VER=$$VERSION^XPDUTL("NLT")
- ;----- BEGIN IHS MODIFICATIONS LR*5.2*1018 ALPHA ONLY??
- ;I VER'=5.254 W !,$$CJ^XLFSTR("You must have NLT V5.254 Installed",IOM),! S XPDQUIT=2 Q
- ;----- END IHS MODIFICATIONS
- Q
- LR240 ;DALOI/CKA - LR*5.2*240 PATCH ENVIRONMENT CHECK ROUTINE;1/15/2000
- +1 ;;5.2T8;LR;**1018**;Oct 27, 2004
- +2 ;;5.2;LAB SERVICE;**240**;Sep 27,1994
- 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 BMES^XPDUTL($$CJ^XLFSTR("*** Environment check started ***",80))
- +4 DO CHECK
- IF $GET(XPDQUIT)
- QUIT
- EXIT IF $GET(XPDQUIT)
- WRITE !!,$$CJ^XLFSTR("Install Environment Check FAILED",IOM)
- +1 IF '$GET(XPDQUIT)
- WRITE !!,$$CJ^XLFSTR("Environment Check is Ok ---",IOM)
- +2 KILL VER,RN,LN2
- +3 QUIT
- CHECK IF $SELECT('$GET(IOM):1,'$GET(IOSL):1,$GET(U)'="^":1,1:0)
- WRITE !,$$CJ^XLFSTR("Terminal Device is not defined",IOM),!!
- SET XPDQUIT=2
- QUIT
- +1 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
- +2 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
- +3 SET VER=$$VERSION^XPDUTL("LR")
- +4 IF VER'>5.1
- WRITE !,$$CJ^XLFSTR("You must have LAB V5.2 Installed",IOM),!
- SET XPDQUIT=2
- QUIT
- +5 SET VER=$$VERSION^XPDUTL("NLT")
- +6 ;----- BEGIN IHS MODIFICATIONS LR*5.2*1018 ALPHA ONLY??
- +7 ;I VER'=5.254 W !,$$CJ^XLFSTR("You must have NLT V5.254 Installed",IOM),! S XPDQUIT=2 Q
- +8 ;----- END IHS MODIFICATIONS
- +9 QUIT