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

BLRRLRES.m

Go to the documentation of this file.
  1. BLRRLRES ;ihs/cmi/maw - BLR RESTART GIS LINKS, ENHANCED ; 13-Oct-2017 14:04 ; MAW
  1. ;;5.2;IHS LABORATORY;**1041**;NOV 01, 1997;Build 23
  1. ;
  1. Q
  1. ;
  1. RES(BP,SH) ;EP - restart the link passed in, task man only
  1. N RUNNING
  1. S RUNNING=0
  1. S BP=$O(^INTHPC("B",BP,0))
  1. I 'BP Q 1
  1. S X=$P($G(^INTHPC(BP,0)),U,4) D JOBPAR^%ZOSV I $G(Y)]"" S RUNNING=1
  1. I $D(^INRHB("RUN",BP)),$G(RUNNING) Q 1
  1. I $G(SH) D SHUT(SH,BP)
  1. I $G(SH) H 120 ;maw 4/19/2006 increased hang time to 120 from 60
  1. D START(BP)
  1. Q 0
  1. ;
  1. SHUT(S,B) ;EP - shut down the process
  1. Q:'$G(S) ;quits when shutdown flag is not present
  1. N X
  1. F X=1:1:100 K ^INRHB("RUN",B)
  1. S X=$$SRVRHNG^INHB(B)
  1. Q
  1. ;
  1. START(B) ;EP - restart the process
  1. S X=$$A^INHB(B)
  1. Q
  1. ;