VistA-WorldVistAEHR/r/VA_FILEMAN-ARJT-DI-DD-DM-DT.../DI149ENV.m

48 lines
1.6 KiB
Mathematica

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