source: FOIAVistA/trunk/r/LAB_SERVICE-LR-LS/LR239.m@ 1154

Last change on this file since 1154 was 628, checked in by George Lilly, 15 years ago

initial load of FOIAVistA 6/30/08 version

File size: 1.1 KB
Line 
1LR239 ;DALCIOFO/CKA - LR*5.2*239 PATCH ENVIRONMENT CHECK ROUTINE
2 ;;5.2;LAB SERVICE;**239**;Sep 27,1994
3EN ; Does not prevent loading of the transport global.
4 ;Environment check is done only during the install.
5 Q:'$G(XPDENV)
6 D BMES^XPDUTL($$CJ^XLFSTR("*** Environment check started ***",80))
7 D CHECK Q:$G(XPDQUIT)
8EXIT I $G(XPDQUIT) W !!,$$CJ^XLFSTR("Install Environment Check FAILED",IOM)
9 I '$G(XPDQUIT) W !!,$$CJ^XLFSTR("Environment Check is Ok ---",IOM)
10 K VER,RN,LN2
11 Q
12CHECK 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
13 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
14 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
15 S VER=$$VERSION^XPDUTL("LR")
16 I VER'>5.1 W !,$$CJ^XLFSTR("You must have LAB V5.2 Installed",IOM),! S XPDQUIT=2 Q
17 S VER=$$VERSION^XPDUTL("NLT")
18 I VER'=5.254 W !,$$CJ^XLFSTR("You must have NLT V5.254 Installed",IOM),! S XPDQUIT=2 Q
19 Q
Note: See TracBrowser for help on using the repository browser.