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

DI149ENV.m

Go to the documentation of this file.
  1. DI149ENV ;IRMFO-SF/FM STAFF-ENVIRONMENT CHECK ROUTINE ;6:09 AM 11 Aug 2006
  1. ;;22.0;VA FileMan;**149**;Mar 30, 1999;Build 1
  1. ;Per VHA Directive 10-93-142, this routine should not be modified.
  1. ;
  1. ; Check XPDENV 0 = Loading; 1 = Installing
  1. I 'XPDENV D Q ; Loading Distribution - No Check
  1. . ; Make sure exported routines are registered in ROUTINE(#9.8) file
  1. . ; Edit FOR loop
  1. . N ROU,ZDATE,%,%H,%I,X
  1. . D NOW^%DTC
  1. . S ZDATE=%
  1. . F ROU="DICM","DICRW","DIQG" D
  1. .. N IEN S IEN=$O(^DIC(9.8,"B",ROU,0))
  1. .. I 'IEN D
  1. ... N FDA,DIERR,ZERR,IEN
  1. ... S IEN="+1,"
  1. ... S FDA(9.8,IEN,.01)=ROU
  1. ... S FDA(9.8,IEN,1)="R"
  1. ... S FDA(9.8,IEN,7.4)=ZDATE
  1. ... D UPDATE^DIE("","FDA","IEN")
  1. ... Q
  1. .. Q
  1. . D CLEAN^DILF
  1. . Q
  1. ;
  1. INSCHK ; Do Checks During Install Only
  1. W $C(7)
  1. D MES^XPDUTL("** Although Queuing is allowed - it is HIGHLY recommended that ALL Users and")
  1. D MES^XPDUTL("VISTA Background jobs be STOPPED before installation of this patch. Failure")
  1. D MES^XPDUTL("to do so may result in 'source routine edited' error(s). Edits will be")
  1. D MES^XPDUTL("lost and record(s) may be left in an inconsistent state, for example,")
  1. D MES^XPDUTL("not all Cross-Referencing completed; which in turn may cause FUTURE")
  1. D MES^XPDUTL("VistA/FileMan Hard Errors or corrupted Data. **")
  1. ;
  1. TMCHK ; Check to see if TaskMan is still running
  1. S X=$$TM^%ZTLOAD
  1. I X,'$D(^%ZTSCH("WAIT")) D
  1. . W $C(7)
  1. . D BMES^XPDUTL("* Warning TaskMan Has NOT Been Stopped or Placed in a WAIT State!")
  1. ;
  1. LINH ; Check to see if Logons are Inhibited
  1. D GETENV^%ZOSV ; $P(Y,"^",2) = Installing Volume
  1. S X=+$G(^%ZIS(14.5,"LOGON",$P(Y,"^",2)))
  1. I 'X D
  1. . W $C(7)
  1. . D BMES^XPDUTL("* Warning Logons are NOT Inhibited!")
  1. Q