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

VALMPP.m

Go to the documentation of this file.
  1. VALMPP ; alb/mjk - Pre-Init for List Manager ;08:08 PM 30 Mar 1993
  1. ;;1;List Manager;;Aug 13, 1993
  1. ;
  1. EN ; -- main entry point
  1. D USER G ENQ:'$D(DIFQ)
  1. D OERR G ENQ:'$D(DIFQ)
  1. D XQOR
  1. ENQ Q
  1. ;
  1. USER I $S('($D(DUZ)#2):1,'$D(^VA(200,+DUZ,0)):1,'$D(DUZ(0)):1,DUZ(0)'="@":1,1:0) W !!?3,"The variable DUZ must be set to an active user code and the variable",!?3,"DUZ(0) must equal '@' to initialize.",! K DIFQ
  1. Q
  1. ;
  1. OERR ; -- is protocol file present
  1. I '$D(^ORD(101)) D
  1. .W !,">>> Protocol file not present in this account."
  1. .D STOP
  1. Q
  1. ;
  1. XQOR ; -- Conditionally installs XQOR*
  1. N DIF,X,XCNP,DIR,Y,X,VALMXQ
  1. K ^UTILITY("VALMLOAD",$J) S VALMXQ=6.7
  1. W !!,">>> Checking the version of XQOR*..."
  1. S X="XQOR" X ^%ZOSF("TEST")
  1. I $T S XCNP=0,DIF="^UTILITY(""VALMLOAD"",$J," X ^%ZOSF("LOAD")
  1. S X=$G(^UTILITY("VALMLOAD",$J,2,0))
  1. I $P(X,";",3)'<VALMXQ W "ok." G XQORQ
  1. W !!?5,*7,"The current version of XQOR* is ",$P(X,";",3),"."
  1. W !?5,"List Manager requires version ",VALMXQ," or greater.",!
  1. W !?5,"As part of the post-init, version ",VALMXQ," will be installed."
  1. S DIR(0)="Y",DIR("A")=" Continue with the installation",DIR("B")="No" D ^DIR K DIR
  1. D:'Y STOP
  1. K ^UTILITY("VALMLOAD",$J)
  1. XQORQ Q
  1. ;
  1. STOP ; -- set flag and write message
  1. K DIFQ
  1. W !!,*7,">>> List Manager installation will not occur."
  1. Q