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

A1B2PRE.m

Go to the documentation of this file.
  1. A1B2PRE ;ALB/MJK - ODS PRE-INIT Version 1.5; 14 JAN 1991
  1. ;;Version 1.55 (local for MAS v5 sites);;
  1. ;
  1. EN ; -- pre-init entry point
  1. D REL,DD:$D(DIFQ)
  1. Q
  1. ;
  1. REL ; -- check if version 1 was loaded
  1. ;
  1. F A1B2PKG=0:0 S A1B2PKG=+$O(^DIC(9.4,"C","A1B2",A1B2PKG)) Q:'A1B2PKG I $D(^DIC(9.4,A1B2PKG,0)),$P(^(0),U)="OPERATION DESERT SHIELD" Q
  1. I '$D(^DIC(9.4,A1B2PKG,0)) D MES G RELQ
  1. I $S('$D(^DIC(9.4,A1B2PKG,"VERSION")):1,1:+^("VERSION")<1) D MES G RELQ
  1. RELQ K A1B2PKG Q
  1. ;
  1. MES ; -- error message
  1. W !!,*7,"You must load version 1 of 'OPERATION DESERT SHIELD' package first."
  1. W !!,"Initialization aborted." K DIFQ
  1. Q
  1. ;
  1. DD ; -- del 11500.2
  1. W !,">>> Deleting ODS ADMISSIONS file data dictionary..."
  1. S DIU=11500.2,DIU(0)="" D EN^DIU2 K DIU
  1. W !," Data dictionary will be restored by inits."
  1. Q
  1. ;