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

BLRPRE1.m

Go to the documentation of this file.
  1. BLRPRE1 ; IHS/HQW/TPF - ENVIRONMENT CHECK FOR PATCH 13; [ 10/09/2002 6:55 AM ]
  1. ;;5.2;LR;**1014**;OCT 9, 2002
  1. S $P(LINE,"*",81)=""
  1. S XPDNOQUE="NO QUE" ;NO QUEUING ALLOWED
  1. S XPDABORT=0
  1. I '$G(DUZ) W !,"DUZ UNDEFINED OR 0." D SORRY Q
  1. ;
  1. I '$L($G(DUZ(0))) W !,"DUZ(0) UNDEFINED OR NULL." D SORRY Q
  1. ;
  1. D HOME^%ZIS,DT^DICRW
  1. S X=$P($G(^VA(200,DUZ,0)),U)
  1. I $G(X)="" W !,$$C^XBFUNC("Who are you????") D SORRY Q
  1. W !,$$C^XBFUNC("Hello, "_$P(X,",",2)_" "_$P(X,","))
  1. W !!,$$C^XBFUNC("Checking Environment for Patch "_$P($T(+2),";",5)_" of Version "_$P($T(+2),";",3)_" of "_$P($T(+2),";",4)_".")
  1. ;
  1. S X=$G(^DD("VERSION"))
  1. W !!,$$C^XBFUNC("Need at least FileMan 21.....FileMan "_X_" Present")
  1. I X<21 D SORRY Q
  1. ;
  1. S X=$G(^DIC(9.4,$O(^DIC(9.4,"C","XU",0)),"VERSION"))
  1. W !!,$$C^XBFUNC("Need at least Kernel 8.0.....Kernel "_X_" Present")
  1. I X<8.0 D SORRY Q
  1. ;
  1. VERSION ;
  1. ;CHECK FOR PREVIOUS PATCH NEEDED
  1. S %=$D(^XPD("9.7","B","LR*5.2*1013"))
  1. I '% D Q
  1. . W !,$$C^XBFUNC("Patch 1014 of version 5.2 of the RPMS Laboratory Package Cannot Be Installed Unless")
  1. . W !,$$C^XBFUNC("Patch 1013 of version 5.2 Has not Been Previously Installed.")
  1. . D SORRY
  1. . I $$DIR^XBDIR("E","Press RETURN...")
  1. ;
  1. ;GET INSTALL STATUS
  1. S %=$O(^XPD("9.7","B","LR*5.2*1013",""))
  1. S LRSTATUS=$P($G(^XPD(9.7,%,0)),U,9)
  1. I LRSTATUS'=3 D Q ;IF INSTALL STATUS NOT COMPLETE QUIT
  1. .W !,$$C^XBFUNC("Install of Patch 1013 not complete!")
  1. .D SORRY
  1. .I $$DIR^XBDIR("E","Press RETURN...")
  1. ;
  1. W !!!,$$C^XBFUNC("Patch 1013 of version LR 5.2 Has Been Previously Installed......OK to continue")
  1. ;
  1. ;
  1. ENVOK ; If this is just an environ check, end here.
  1. W !!,$$C^XBFUNC("ENVIRONMENT OK.")
  1. ;
  1. ; The following line prevents the "Disable Options..." and "Move
  1. ; Routines..." questions from being asked during the install.
  1. I $G(XPDENV)=1 S (XPDDIQ("XPZ1"),XPDDIQ("XPZ2"))=0
  1. ;
  1. ;VERIFY BACKUPS HAVE BEEN DONE
  1. W !!
  1. S DIR(0)="Y"
  1. S DIR("B")="NO"
  1. S DIR("A")="Has a SUCCESSFUL system backup been performed??"
  1. D ^DIR
  1. I $D(DIRUT)!($G(Y)=0) S XPDABORT=1 Q
  1. S ^TMP("BLRAPRE","BACKUPS CONFIRMED BY "_DUZ)=$H
  1. ;
  1. Q
  1. SORRY ;
  1. K DIFQ
  1. S XPDABORT=1
  1. W *7,!!!,$$C^XBFUNC("Sorry....something is wrong with your enviroment")
  1. W !,$$C^XBFUNC("Aborting Electronic Signature Plug-in install!")
  1. W !,$$C^XBFUNC("Please print/capture this screen and notify")
  1. W !,$$C^XBFUNC("the Help Desk")
  1. W !!,LINE
  1. Q