source: WorldVistAEHR/trunk/r/MENTAL_HEALTH-YS-RUCL-YI-YT/YSENV.m@ 1154

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

initial load of WorldVistAEHR

File size: 972 bytes
Line 
1YSENV ;DALIRMFO/MJD - YS*5.01*25 PATCH ENVIRONMENT CHECK ROUTINE
2 ;;5.01;MENTAL HEALTH;**25**;Dec 30, 1995
3EN ; Does not prevent loading of the transport global.
4 ;Environment check is done only during the install.
5 QUIT:'$G(XPDENV)
6 D CHECK
7 ;
8EXIT I $G(XPDQUIT) W !!,$$CJ^XLFSTR("Install Environment Check FAILED",80)
9 I '$G(XPDQUIT) W !!,$$CJ^XLFSTR("Environment Check is Done...",80)
10 K VER,RN,LN2
11 QUIT
12 ;
13CHECK ;
14 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
15 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
16 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
17 S VER=$$VERSION^XPDUTL("MENTAL HEALTH")
18 I VER'=5.01 W !,$$CJ^XLFSTR("You must have Mental Health V 5.01 Installed",80),! S XPDQUIT=2 Q
19 QUIT
20 ;
21EOR ;;YS*5.01*25 PATCH ENVIRONMENT CHECK ROUTINE;;
Note: See TracBrowser for help on using the repository browser.