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

LR264.m

Go to the documentation of this file.
  1. LR264 ;DALOI/FHS - LR*5.2*264 PATCH ENVIRONMENT CHECK ROUTINE
  1. ;;5.2;LAB SERVICE;**264**;Sep 27,1994
  1. ;Reference to VA(200 Supported by Reference #10060
  1. ;Reference to $$CJ^XLFSTR Supported by Reference #10104
  1. ;Reference to $$VERSION^XPDUTL Supported by Reference #10104
  1. ;Reference to BMES^XPDUTL Supported by Reference #10141
  1. EN ; Does not prevent loading of the transport global.
  1. ;Environment check is done only during the install.
  1. Q:'$G(XPDENV)
  1. D BMES^XPDUTL($$CJ^XLFSTR("*** Environment check started ***",80))
  1. D CHECK Q:$G(XPDQUIT)
  1. EXIT I $G(XPDQUIT) W !!,$$CJ^XLFSTR("Install Environment Check FAILED",IOM)
  1. I '$G(XPDQUIT) W !!,$$CJ^XLFSTR("Environment Check is Ok ---",IOM)
  1. K VER,RN,LN2
  1. Q
  1. CHECK I $S('$G(IOM):1,'$G(IOSL):1,$G(U)'="^":1,1:0) W !,$$CJ^XLFSTR("Terminal Device is not defined",IOM),!! S XPDQUIT=2 Q
  1. 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
  1. 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
  1. S VER=$$VERSION^XPDUTL("LR")
  1. I VER'>5.1 W !,$$CJ^XLFSTR("You must have LAB V5.2 Installed",IOM),! S XPDQUIT=2 Q
  1. Q