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

DIZP2ENV.m

Go to the documentation of this file.
DIZP2ENV ;IHS/OIRM/DSD/AEF - PATCH DI*22.0*1001 ENVIRONMENT CHECK ROUTINE [ 02/12/2004  10:07 AM ]
 ;;22.0;VA FileMan;**1002**;APR 1, 2003
 ;
EN ;EP -- MAIN ENTRY POINT
 ;
 D ^XBKVAR
 D NOQUE
 D VERSION
 D PATCH
 D NOASK
 D TMCHK^DIENVWRN
 D OK
 Q
NOQUE ;----- PREVENT QUEUEING OF INSTALL
 ;
 S XPDNOQUE=1
 Q
VERSION ;----- CHECK VERSION
 ;
 I "22.0"'=$$VERSION^XPDUTL("VA FILEMAN") D
 . S XPDQUIT=1
 . D BMES^XPDUTL("CURRENT VERSION IS NOT 22.0, CANNOT CONTINUE WITH INSTALL")
 Q
PATCH ;----- CHECK PATCH 1001 LOADED
 N I,J
 S I=+$O(^DIC(9.4,"C","DI",0))
 S J=+$O(^DIC(9.4,I,22,"B","22.0",0))
 I '$D(^DIC(9.4,I,22,J,"PAH","B",1001)) D
 .S XPDQUIT=1
 .D BMES^XPDUTL("PATCH 1001 NOT INSTALLED, CANNOT CONTINUE WITH INSTALL")
 Q
NOASK ;----- SUPPRESS ASK 'DISABLE OPTS','MOVE ROUTINES' PROMPTS
 ;
 S XPDDIQ("XPZ1")=0 ;'DISABLE OPTIONS' SET DEFAULT TO 'NO' & NOT ASK
 S XPDDIQ("XPZ2")=0 ;'MOVE ROUTINES' SET DEFAULT TO 'NO' & NOT ASK
 Q
OK ;----- OK TO INSTALL?
 ;
 I $G(XPDQUIT) D
 . D BMES^XPDUTL("INSTALL ABORTED!")
 I '$G(XPDQUIT) D
 . D BMES^XPDUTL("EVERYTHING LOOKS OK")
 Q