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