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

HLP109EN.m

Go to the documentation of this file.
  1. HLP109EN ;OIFO-O/RJH - HL*1.6*109 ENVIRONMENTT CHECK ROUTINE ;12/11/2003
  1. ;;1.6;HEALTH LEVEL SEVEN;**109**;OCT 13, 1995
  1. ;
  1. EN ; Check environment...
  1. N ACTION
  1. ;
  1. ; If no AC,I xrefs...
  1. I $O(^HLMA("AC","I",0))'>0 D QUIT ;->
  1. . W !!,"Environment check OK..."
  1. . W !
  1. ;
  1. ; AC,I xrefs exist. So, if loading, just warn. Otherwise, stop!
  1. ;
  1. ; Set ACTION=1 if loading, and ACTION=2 if installing...
  1. S ACTION=$$UP^XLFSTR($G(XQY0)),ACTION=$S(ACTION["LOAD":1,1:2)
  1. ;
  1. S X="IOINHI;IOINORM" D ENDR^%ZISS
  1. S X=$$REPEAT^XLFSTR("=",35) W !!,X," ",IOINHI,"Warning",IOINORM," ",X
  1. D @("INFORM"_ACTION)
  1. ;
  1. I ACTION=2 S XPDABORT=2 ; Stop, but don't unload...
  1. ;
  1. W !
  1. S X=$$BTE("Press RETURN to "_$S(ACTION=1:"continue",1:"exit")_"...")
  1. ;
  1. Q
  1. ;
  1. BTE(PMT) ;
  1. N DIR,DIRUT,DTOUT,DUOUT,X,Y
  1. S DIR(0)="EA",DIR("A")=PMT
  1. D ^DIR
  1. Q $S(+Y=1:1,1:"")
  1. ;
  1. INFORM1 ; General information when AC,Is exist and LOADing...
  1. W !,"There are inbound queues with un-processed messages. Before patch HL*1.6*109"
  1. W !,"can be installed, the inbound queues must be empty. You may continue loading"
  1. W !,"these patches. But, remember to clear the inbound queues before loading."
  1. W !!,"(To clear the queues, start one or more incoming filer(s) to process the"
  1. W !,"messages until there are no messages in the queue.)"
  1. Q
  1. ;
  1. INFORM2 ; General information when AC,Is exist and INSTALLing...
  1. W !,"There are inbound queues with un-processed messages. Before patch HL*1.6*109"
  1. W !,"can be installed, the inbound queues must be empty. Start one or more"
  1. W !,"incoming filer(s) to process the messages until there are no messages in the"
  1. W !,"queue. Then, try to install patch HL*1.6*109 again."
  1. Q
  1. ;