Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: LR111

LR111.m

Go to the documentation of this file.
LR111 ;DALISC/FHS/HOAK - LR*5.2*111 ENVIRNMENT CHECK ROUTINE ;6/10/97  800 ;
 ;;5.2;LAB SERVICE;**59,111**;Sep 27, 1994
EN ; Does not prevent loading of the transport global.
 ;Envirnment check is done only during the install.
 Q:'$G(XPDENV)
 ;-------------------------------------------------------------------
 ; check for device assigned
DEVICE ;
 I $S('$G(IOM):1,'$G(IOSL):1,$G(U)'="^":1,1:0) D
 .  W !,$$CJ^XLFSTR("Terminal Device in not defined",80),!!
 ;-------------------------------------------------------------------
 ;  asertain wether user signed on
USER ;
 I $S('$G(DUZ):1,$D(DUZ)[0:1,$D(DUZ(0))[0:1,1:0) D
 .  W !!,$$CJ^XLFSTR("Please Log in to set local DUZ... variables",80),!
 .  S XPDQUIT=2
 ;-------------------------------------------------------------------
 I '$D(^VA(200,$G(DUZ),0))#2 D
 .  W !,$$CJ^XLFSTR("You are not a valid user on this system",80),!
 .  S XPDQUIT=2
 ;-------------------------------------------------------------------
 I +$G(^LAM("VR"))'>5.1 D
 .  W !,$$CJ^XLFSTR("You must have LAB V5.2 or greater Installed",80),!
 .  S XPDQUIT=2
 ;-------------------------------------------------------------------
 I $G(XPDQUIT) W !!,$$CJ^XLFSTR("Install environment check FAILED",80)
 I '$G(XPDQUIT) W !!,$$CJ^XLFSTR("Envirnment Check is Ok ---",80)
 Q