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

LR258.m

Go to the documentation of this file.
  1. LR258 ;DALOI/RSH - LR*5.2*258 PATCH ENVIRONMENT CHECK ROUTINE
  1. ;;5.2;LAB SERVICE;**258**;Sep 27,1994
  1. EN ; Does not prevent loading of the transport global.
  1. ;Environment check is done only during the install.
  1. ;$$CJ^XLFSTR supported by DBIA #10104
  1. ;$$VERSION^XPDUTL supported by DBIA #10141
  1. ;BMES^XPDUTL supported by DBIA 10141
  1. ;$$ACTIVE^XUSER supported by DBIA #2343
  1. Q:'$G(XPDENV)
  1. D BMES^XPDUTL($$CJ^XLFSTR("*** Environment check started ***",80))
  1. D CHECK
  1. D EXIT Q:$G(XPDQUIT)
  1. N DIR,DIC
  1. D BMES^XPDUTL($$CJ^XLFSTR("This patch installs National Laboratory Test codes.",IOM))
  1. D BMES^XPDUTL($$CJ^XLFSTR("LAB NLT/CPT CODES (#64.81)",IOM))
  1. D BMES^XPDUTL($$CJ^XLFSTR("Will be purged to ensure data integrity.",IOM))
  1. D BMES^XPDUTL($$CJ^XLFSTR("File #64.81 will be replaced completely by this patch installation.",IOM))
  1. W ! S DIR(0)="Y",DIR("A")="Do you want to continue"
  1. S DIR("B")="YES"
  1. D ^DIR K DIR
  1. I $D(DIRUT)!('Y) D Q
  1. .D BMES^XPDUTL($$CJ^XLFSTR("Environment check aborted.",IOM))
  1. .S XPDQUIT=2
  1. .Q
  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
  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",IOM),! S XPDQUIT=2
  1. I '$P($$ACTIVE^XUSER(DUZ),U) W !,$$CJ^XLFSTR("You are not a valid user on this system",IOM),! S XPDQUIT=2
  1. S VER=""
  1. I $O(^LAM(0)) S VER=$$VERSION^XPDUTL("LR")
  1. I VER,VER'>5.1 W !,$$CJ^XLFSTR("You must have LAB V5.2 Installed",IOM),! S XPDQUIT=2
  1. LMI N DIC,X,Y
  1. S DIC=3.8,DIC(0)="NMXO",X="LMI" D ^DIC
  1. I Y<1 D
  1. . W !,$$CJ^XLFSTR("You must have Mail Group [ LMI ] defined.",IOM)
  1. . S XPDQUIT=2
  1. Q:$G(XPDQUIT)<1
  1. S XPDIQ("XPZ1","B")="NO"
  1. Q
  1. EXIT I $G(XPDQUIT) W !!,$$CJ^XLFSTR("Install Environment Check FAILED",IOM)
  1. I '$G(XPDQUIT) D BMES^XPDUTL($$CJ^XLFSTR("Environment Check is Ok ---",IOM))
  1. K VER,RN,LN2
  1. Q