source: FOIAVistA/trunk/r/LAB_SERVICE-LR-LS/LR125.m@ 1679

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

initial load of FOIAVistA 6/30/08 version

File size: 870 bytes
Line 
1LR125 ;DALISC/CKA - LR*5.2*125 PATCH ENVIRNMENT CHECK ROUTINE
2 ;;5.2;LAB SERVICE;**125**;May 29, 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.