source: FOIAVistA/trunk/r/MENTAL_HEALTH-YS-RUCL-YI-YT/YSCLENV.m@ 1572

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

initial load of FOIAVistA 6/30/08 version

File size: 946 bytes
Line 
1YSCLENV ;DALISC/MJD - YS*5.01*22 PATCH ENVIRNMENT CHECK ROUTINE
2 ;;5.01;MENTAL HEALTH;**18,22**;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,YSPATCH
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 QUIT
18 ;
19VK ;
20 S VER=$$VERSION^XPDUTL("MENTAL HEALTH")
21 I '$D(^YSCL(603.01,0))&($G(VER)'=5.01) K DIR
22 QUIT
23 ;
24EOR ;;YS*5.01*22 PATCH ENVIRONMENT CHECK ROUTINE;;
Note: See TracBrowser for help on using the repository browser.