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

BDGP18PS.m

Go to the documentation of this file.
  1. BDGP18PS ;ihs/cmi/maw - PIMS Patch 1018 env checker
  1. ;;5.3;PIMS;**1018**;MAY 28, 2004;Build 27
  1. ;
  1. ENV ;-- environment check
  1. I '$$INSTALLD("PIMS*5.3*1017") D SORRY(2)
  1. I '$$INSTALLD("BJPC*2.0*9") D SORRY(2)
  1. I '$$INSTALLD("TIU*1.0*1010") D SORRY(2)
  1. Q
  1. ;
  1. POST ;post init entry point
  1. Q
  1. ;
  1. INSTALLD(BDGSTAL) ;EP - Determine if patch BDGSTAL was installed, where
  1. ; BDGSTAL is the name of the INSTALL. E.g "AG*6.0*11".
  1. ;
  1. NEW BDGY,DIC,X,Y
  1. S X=$P(BDGSTAL,"*",1)
  1. S DIC="^DIC(9.4,",DIC(0)="FM",D="C"
  1. D IX^DIC
  1. I Y<1 D IMES Q 0
  1. S DIC=DIC_+Y_",22,",X=$P(BDGSTAL,"*",2)
  1. D ^DIC
  1. I Y<1 D IMES Q 0
  1. S DIC=DIC_+Y_",""PAH"",",X=$P(BDGSTAL,"*",3)
  1. D ^DIC
  1. S BDGY=Y
  1. D IMES
  1. Q $S(BDGY<1:0,1:1)
  1. IMES ;
  1. D MES^XPDUTL($$CJ^XLFSTR("Patch """_BDGSTAL_""" is"_$S(Y<1:" *NOT*",1:"")_" Present.",IOM))
  1. Q
  1. SORRY(X) ;
  1. KILL DIFQ
  1. I X=3 S XPDQUIT=2 Q
  1. S XPDQUIT=X
  1. W *7,!,$$CJ^XLFSTR("Sorry....FIX IT!",IOM)
  1. Q
  1. ;