source: WorldVistAEHR/trunk/r/LAB_SERVICE-LR-LS/LR104.m@ 1258

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

initial load of WorldVistAEHR

File size: 870 bytes
RevLine 
[613]1LR104 ;DALISC/SED - LR*5.2*116 PATCH ENVIRNMENT CHECK ROUTINE
2 ;;5.2;LAB SERVICE;**104**;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 Q
Note: See TracBrowser for help on using the repository browser.