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

DGJ1INIT.m

Go to the documentation of this file.
  1. DGJ1INIT ;ALB/MRY - Env/Pre/Post-install of DGJ v1.0 ;[ 06/25/01 15:51 pm]
  1. ;;1.0;Incomplete Records Tracking;;Jun 25, 2001
  1. ;
  1. EN ;
  1. S XPDABORT=""
  1. I '$G(DUZ)!($G(DUZ(0))'="@")!('$G(DT))!($G(U)'="^") D G ABRT
  1. . D BMES^XPDUTL("*****")
  1. . D MES^XPDUTL("Your programming variables are not set up properly.")
  1. . D MES^XPDUTL("Installation aborted.")
  1. ; Verify Registration v5.3 exists, else Quit.
  1. I $$VERSION^XPDUTL("DG")'=5.3 D G ABRT
  1. . D BMES^XPDUTL("*****")
  1. . D MES^XPDUTL("VERSION 5.3 OF REGISTRATION HAS NOT BEEN LOADED.")
  1. . D MES^XPDUTL("Installation aborted.")
  1. ;
  1. ; Verify 'DGJ' was removed from Additional Prefixes of REGISTRATION.
  1. N DIC
  1. S DIC="^DIC(9.4,",DIC(0)="X",X="REGISTRATION"
  1. D ^DIC I Y<0 D G ABRT
  1. . D BMES^XPDUTL("*****")
  1. . D MES^XPDUTL("REGISTRATION PACKAGE HAS NOT BEEN FOUND")
  1. . D MES^XPDUTL("CONTACT - PIMS National VISTA Support Team for assistance!")
  1. . D MES^XPDUTL("Installation aborted.")
  1. S DA(1)=+Y,DIC=DIC_DA(1)_",14,"
  1. S DIC(0)="X",DIC("P")=$P(^DD(9.4,14,0),"^",2),X="DGJ"
  1. D ^DIC I Y>0 D G ABRT
  1. . D BMES^XPDUTL("*****")
  1. . D MES^XPDUTL("'DGJ' must be removed from REGISTRATION's Additional Prefix field.")
  1. . D MES^XPDUTL("Follow INSTALLATION instructions found in the Installation Guide.")
  1. . D MES^XPDUTL("Installation aborted.")
  1. K DA,DIC
  1. ;
  1. ; If previous beta version with different name, then correct name.
  1. D FIND^DIC(9.4,"","@;1;.01","P","DGJ","","C","","","DGJARRY")
  1. S DGJI=0
  1. F S DGJI=$O(DGJARRY("DILIST",DGJI)) Q:'DGJI D
  1. . S X=$G(DGJARRY("DILIST",DGJI,0)),DGJIEN=$P(X,"^",1)
  1. . I $P(X,"^",2)="DGJ",$P(X,"^",3)'="INCOMPLETE RECORDS TRACKING" D
  1. . . ; Correct old name to this version name.
  1. . . S FDATA(9.4,DGJIEN_",",.01)="INCOMPLETE RECORDS TRACKING"
  1. . . D FILE^DIE("E","FDATA","ERR")
  1. K DGJI,DGJIEN,X,FDATA,ERR,DGJARRY
  1. ;
  1. OK K DIE,DR,DA,Y
  1. ;
  1. W !!,"Environment check completed and okay."
  1. Q
  1. ;
  1. POST ; - Run Post-init to Update Package entry for 'DGJ'.
  1. D ^DGJ1INIP
  1. Q
  1. ABRT S XPDABORT=2 Q