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

GMP1PRE.m

Go to the documentation of this file.
  1. GMP1PRE ;ISC-SLC/MJC;ENVIROMENT CHECK FOR GMP*2*3 ;;11-29-95 3:15pm
  1. ;;2.0;Problem List;**3**;Aug 25, 1994
  1. I '$D(^GMPL(125,0)) W $C(7),$C(7),!,"I think you're in the wrong UCI!",!?16,"-or-",!,"You don't have Problem List v2.0 installed yet!",!! K DIFQ Q
  1. S U="^" I $S('($D(DUZ)#2):1,'$D(^VA(200,DUZ,0)):1,1:0) D K DIFQ Q
  1. .W !!,"Your DUZ is "_$S($D(DUZ):"incorrectly set",1:"not set")_", the INIT will not run!!" Q
  1. I $S('$D(DUZ(0)):1,DUZ(0)'="@":1,1:0) D K DIFQ Q
  1. .W !!,"DUZ(0) needs to be set to ""@"", the INIT will not run!!" Q
  1. H 1
  1. CHECK N X,Y S XT4="I 1"
  1. W !!,"I will check your checksums for you...." H 2 K FLAG W !
  1. CONT F XT1=1:1 S XT2=$T(ROU+XT1) Q:XT2="" D
  1. .S X=$P(XT2," ",1),XT3=$P(XT2,";",3) X XT4 I $T W !,X X ^%ZOSF("TEST") S:'$T XT3=0 X:XT3 ^%ZOSF("RSUM") W ?10,Y,?19,$S('XT3:"Routine not in UCI",XT3'=Y:"OFF BY "_(Y-XT3),1:"ok")
  1. .I 'XT3!(XT3'=Y) S FLAG=1
  1. I $D(FLAG) D
  1. .W !!,$C(7),$C(7),"All of the routines that were exported with this"
  1. .W " patch do not",!,"have the correct checksum values!!",!
  1. .K DIR S DIR("A")="Do you want to continue? "
  1. .S DIR("B")="NO",DIR(0)="YA"
  1. .S DIR("?")=" 'YES' and I will continue- 'NO' and I will stop the init"
  1. .D ^DIR K DIR I '+$G(Y) K DIFQ W !!,"Init stopped- re-run it when you're ready."
  1. I $D(DIFQ)&('$D(FLAG)) W !!,"Checksums are all correct......",!
  1. ;
  1. EXIT K XT1,XT2,XT3,XT4,FLAG Q
  1. ROU ;;
  1. GMP1I001 ;;4908207
  1. GMP1I002 ;;2761731
  1. GMP1INI1 ;;4834696
  1. GMP1INI2 ;;5232492
  1. GMP1INI3 ;;16805488
  1. GMP1INI4 ;;3357664
  1. GMP1INI5 ;;524405
  1. GMP1INIS ;;2205315
  1. GMP1INIT ;;10518438
  1. GMP1L ;;5248968
  1. GMP1O001 ;;10098511
  1. GMP1ONI1 ;;1694610
  1. GMP1ONI2 ;;82718
  1. GMP1ONI3 ;;10576480
  1. GMP1ONIT ;;950844
  1. GMP1POST ;;681031
  1. GMPL ;;10704366
  1. GMPL1 ;;7123050
  1. GMPLBLD ;;11222614
  1. GMPLBLD1 ;;12288092
  1. GMPLBLD2 ;;8690160
  1. GMPLBLDC ;;11018269
  1. GMPLENFM ;;5246257
  1. GMPLPREF ;;10212637
  1. GMPLPRF0 ;;10274861
  1. GMPLPRF1 ;;14352559
  1. GMPLUTL ;;9761312
  1. GMPLUTL1 ;;5776027
  1. GMPLX1 ;;6961925