Last change
on this file since 1476 was 613, checked in by George Lilly, 15 years ago |
initial load of WorldVistAEHR
|
File size:
972 bytes
|
Rev | Line | |
---|
[613] | 1 | YS03ENV ;DALISC/MJD - YS*5.01*16 PATCH ENVIRONMENT CHECK ROUTINE
|
---|
| 2 | ;;5.01;MENTAL HEALTH;**16**;Dec 30, 1995
|
---|
| 3 | EN ; 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 | ;
|
---|
| 8 | EXIT 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 | ;
|
---|
| 13 | CHECK ;
|
---|
| 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 | ;
|
---|
| 21 | EOR ;;YS*5.01*16 PATCH ENVIRONMENT CHECK ROUTINE;;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.