source: FOIAVistA/trunk/r/LAB_SERVICE-LR-LS/LR116.m@ 1791

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

initial load of FOIAVistA 6/30/08 version

File size: 1021 bytes
Line 
1LR116 ;DALISC/SED - LR*5.2*116 PATCH ENVIRNMENT CHECK ROUTINE
2 ;;5.2;LAB SERVICE;**116**;Feb 14, 1996
3EN ; Does not prevent loading of the transport global.
4 ;Environment check is done only during the install.
5 Q:'$G(XPDENV)
6 D CHECK
7EXIT I $G(XPDQUIT) W !!,$$CJ^XLFSTR("Install Environment Check FAILED",80)
8 I '$G(XPDQUIT) W !!,$$CJ^XLFSTR("Environment Check is Ok ---",80)
9 K VER,RN,LN2
10 Q
11CHECK 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
12 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
13 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
14 S VER=$$VERSION^XPDUTL("LR")
15 I VER'>5.1 W !,$$CJ^XLFSTR("You must have LAB V5.2 Installed",80),! S XPDQUIT=2 Q
16 S RN="LRMITSPO"
17 X "ZL @RN S LN2=$T(+2)" I LN2'["**96" W !,$$CJ^XLFSTR("It appears that Patch 'LR*5.2*96' has not been installed",80),! S XPDQUIT=2 Q
18 Q
Note: See TracBrowser for help on using the repository browser.