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

XUINOK.m

Go to the documentation of this file.
  1. XUINOK ;SFISC/RWF - CHECK TO SEE IF OK TO LOAD ;06/02/95 12:23
  1. ;;8.0;KERNEL;;Jul 10, 1995
  1. N Y
  1. I $S($D(DUZ)[0:1,$D(DUZ(0))[0:1,'DUZ:1,1:0) W !!,*7,">> DUZ and DUZ(0) must be defined as an active user to initialize." G EXIT
  1. ;
  1. W !,"I'm checking to see if it is OK to install KERNEL v",$P($T(+2),";",3)," in this account.",!
  1. W !!,"Checking the %ZOSV routine" D GETENV^%ZOSV
  1. I $P(Y,"^",4)="" W !,"The %ZOSV routine isn't current.",!,"Check the second line of the routine, or your routine map table." G EXIT
  1. ;must have Kernel 7.1
  1. S Y=$$VERSION^XPDUTL("XU") G:Y&(Y<7.1) OLD
  1. ;during Install, check global access,MM routine, and OS
  1. ;XPDDIQ = don't ask DISABLE OPTIONS question
  1. ;XPDNOQUE = not to allow queueing during install
  1. I $G(XPDENV) D GBLOK,MMCHK,OS S XPDDIQ("XPZ1")=0,XPDNOQUE=1
  1. Q:$G(XPDQUIT)
  1. W !!,"Everything looks OK, Lets continue.",!
  1. Q
  1. ;
  1. OLD W !!,*7,"It looks like you currently have version ",Y," of KERNEL installed."
  1. W !,*7,"You must first install KERNEL v7.1 before this version can be installed.",!
  1. ABRT S XPDQUIT=1 Q
  1. EXIT S XPDQUIT=2 Q
  1. ;
  1. Q
  1. GBLOK ;Check to see if we have write access to needed globals.
  1. W !,"Now to check protection on GLOBALS.",!,"If you get an ERROR, you need to add Write access to that global.",!
  1. F Y="^%ZIS","^%ZISL","^%ZTER","^%ZUA" W !,"Checking ",Y S @(Y_"=$G("_Y_")")
  1. Q
  1. MMCHK ;check XMGAPI4
  1. N X
  1. S X="XMGAPI4" X ^%ZOSF("TEST") E Q
  1. ;if exists, skip routine during load
  1. S X=$$RTNUP^XPDUTL("XMGAPI4",2)
  1. Q
  1. OS ;checks OS and skips all other ZU routines
  1. ;XUZURTN = ZU routine to save, checked in XUINPRE
  1. N X,XUNU,XUNU1,XUOS
  1. S X=$G(^%ZOSF("OS")),XUOS="VXD^DTM^MSM^MSQ"
  1. F XUNU=1:1:4 S XUNU1=X[$P("DSM^DTM^MSM^M/SQL",U,XUNU) Q:XUNU1
  1. Q:'XUNU1
  1. F XUNU1=1:1:4 S:XUNU'=XUNU1 X=$$RTNUP^XPDUTL("ZU"_$P(XUOS,U,XUNU1),2)
  1. S XUZURTN="ZU"_$P(XUOS,U,XUNU)
  1. Q