source: WorldVistAEHR/trunk/r/LAB_SERVICE-LR-LS/LR59.m@ 1389

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

initial load of WorldVistAEHR

File size: 1012 bytes
RevLine 
[613]1LR59 ;DALISC/CKA - LR*5.2*59 PATCH ENVIRNMENT CHECK ROUTINE
2 ;;5.2;LAB SERVICE;**59**;Jul 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="DIAXU"
17 X "ZL @RN S LN2=$T(+2)" I LN2'["**8" W !,$$CJ^XLFSTR("It appears that Patch 'DI*21*8' has not been installed",80),! S XPDQUIT=2 Q
18 Q
Note: See TracBrowser for help on using the repository browser.