| 1 | DIENVWRN ;IRMFO-SF/FM STAFF-ENVIRONMENT CHECK ROUTINE ;10:10 AM 28 Apr 2006
|
---|
| 2 | ;;22.0;VA FileMan;**147**;Mar 30, 1999
|
---|
| 3 | ;Per VHA Directive 10-93-142, this routine should not be modified.
|
---|
| 4 | ;
|
---|
| 5 | ; Check XPDENV 0 = Loading; 1 = Installing
|
---|
| 6 | I 'XPDENV D Q ; Loading Distribution - No Check
|
---|
| 7 | . ; Make sure exported routines are registered in ROUTINE(#9.8) file
|
---|
| 8 | . ; Edit FOR loop
|
---|
| 9 | . N ROU,ZDATE,%,%H,%I,X
|
---|
| 10 | . D NOW^%DTC
|
---|
| 11 | . S ZDATE=%
|
---|
| 12 | . F ROU="DDS10","DIA2","DICA3","DICN0","DIEF1","DIEFW","DIET","DILF" D
|
---|
| 13 | .. N IEN S IEN=$O(^DIC(9.8,"B",ROU,0))
|
---|
| 14 | .. I 'IEN D
|
---|
| 15 | ... N FDA,DIERR,ZERR,IEN
|
---|
| 16 | ... S IEN="+1,"
|
---|
| 17 | ... S FDA(9.8,IEN,.01)=ROU
|
---|
| 18 | ... S FDA(9.8,IEN,1)="R"
|
---|
| 19 | ... S FDA(9.8,IEN,7.4)=ZDATE
|
---|
| 20 | ... D UPDATE^DIE("","FDA","IEN")
|
---|
| 21 | ... Q
|
---|
| 22 | .. Q
|
---|
| 23 | . D CLEAN^DILF
|
---|
| 24 | . Q
|
---|
| 25 | ;
|
---|
| 26 | INSCHK ; Do Checks During Install Only
|
---|
| 27 | W $C(7)
|
---|
| 28 | D MES^XPDUTL("** Although Queuing is allowed - it is HIGHLY recommended that ALL Users and")
|
---|
| 29 | D MES^XPDUTL("VISTA Background jobs be STOPPED before installation of this patch. Failure")
|
---|
| 30 | D MES^XPDUTL("to do so may result in 'source routine edited' error(s). Edits will be")
|
---|
| 31 | D MES^XPDUTL("lost and record(s) may be left in an inconsistent state, for example,")
|
---|
| 32 | D MES^XPDUTL("not all Cross-Referencing completed; which in turn may cause FUTURE")
|
---|
| 33 | D MES^XPDUTL("VistA/FileMan Hard Errors or corrupted Data. **")
|
---|
| 34 | ;
|
---|
| 35 | TMCHK ; Check to see if TaskMan is still running
|
---|
| 36 | S X=$$TM^%ZTLOAD
|
---|
| 37 | I X,'$D(^%ZTSCH("WAIT")) D
|
---|
| 38 | . W $C(7)
|
---|
| 39 | . D BMES^XPDUTL("* Warning TaskMan Has NOT Been Stopped or Placed in a WAIT State!")
|
---|
| 40 | ;
|
---|
| 41 | LINH ; Check to see if Logons are Inhibited
|
---|
| 42 | D GETENV^%ZOSV ; $P(Y,"^",2) = Installing Volume
|
---|
| 43 | S X=+$G(^%ZIS(14.5,"LOGON",$P(Y,"^",2)))
|
---|
| 44 | I 'X D
|
---|
| 45 | . W $C(7)
|
---|
| 46 | . D BMES^XPDUTL("* Warning Logons are NOT Inhibited!")
|
---|
| 47 | Q
|
---|