source: FOIAVistA/trunk/r/KERNEL-XU-A4A7-USC-XG-XLF-XNOA-XPD-XQ-XVIR-ZI-ZOSF-ZOSV-ZT-ZU-%Z-XIP--XQAB--XUC--XUR--ZIN--ZTED/XUINOK.m@ 1327

Last change on this file since 1327 was 628, checked in by George Lilly, 15 years ago

initial load of FOIAVistA 6/30/08 version

File size: 1.8 KB
Line 
1XUINOK ;SFISC/RWF - CHECK TO SEE IF OK TO LOAD ;06/02/95 12:23
2 ;;8.0;KERNEL;;Jul 10, 1995
3 N Y
4 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
5 ;
6 W !,"I'm checking to see if it is OK to install KERNEL v",$P($T(+2),";",3)," in this account.",!
7 W !!,"Checking the %ZOSV routine" D GETENV^%ZOSV
8 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
9 ;must have Kernel 7.1
10 S Y=$$VERSION^XPDUTL("XU") G:Y&(Y<7.1) OLD
11 ;during Install, check global access,MM routine, and OS
12 ;XPDDIQ = don't ask DISABLE OPTIONS question
13 ;XPDNOQUE = not to allow queueing during install
14 I $G(XPDENV) D GBLOK,MMCHK,OS S XPDDIQ("XPZ1")=0,XPDNOQUE=1
15 Q:$G(XPDQUIT)
16 W !!,"Everything looks OK, Lets continue.",!
17
18 Q
19 ;
20OLD W !!,*7,"It looks like you currently have version ",Y," of KERNEL installed."
21 W !,*7,"You must first install KERNEL v7.1 before this version can be installed.",!
22ABRT S XPDQUIT=1 Q
23EXIT S XPDQUIT=2 Q
24 ;
25 Q
26GBLOK ;Check to see if we have write access to needed globals.
27 W !,"Now to check protection on GLOBALS.",!,"If you get an ERROR, you need to add Write access to that global.",!
28 F Y="^%ZIS","^%ZISL","^%ZTER","^%ZUA" W !,"Checking ",Y S @(Y_"=$G("_Y_")")
29 Q
30MMCHK ;check XMGAPI4
31 N X
32 S X="XMGAPI4" X ^%ZOSF("TEST") E Q
33 ;if exists, skip routine during load
34 S X=$$RTNUP^XPDUTL("XMGAPI4",2)
35 Q
36OS ;checks OS and skips all other ZU routines
37 ;XUZURTN = ZU routine to save, checked in XUINPRE
38 N X,XUNU,XUNU1,XUOS
39 S X=$G(^%ZOSF("OS")),XUOS="VXD^DTM^MSM^MSQ"
40 F XUNU=1:1:4 S XUNU1=X[$P("DSM^DTM^MSM^M/SQL",U,XUNU) Q:XUNU1
41 Q:'XUNU1
42 F XUNU1=1:1:4 S:XUNU'=XUNU1 X=$$RTNUP^XPDUTL("ZU"_$P(XUOS,U,XUNU1),2)
43 S XUZURTN="ZU"_$P(XUOS,U,XUNU)
44 Q
Note: See TracBrowser for help on using the repository browser.