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

BHLPGIS.m

Go to the documentation of this file.
  1. BHLPGIS ; cmi/flag/maw - BHL Purge Dynamic GIS Files ;
  1. ;;3.01;BHL IHS Interfaces with GIS;**1**;JUN 01, 2002
  1. ;
  1. ;
  1. ;this routine will purge all entries in the following globals
  1. ;^INTHL7M, ^INTHL7F, ^INTHL7S, ^INTRHT, ^INRHD, ^INTHPC, ^INRHS
  1. ;it should only be used if no modifications were made to the
  1. ;original GIS system
  1. ;
  1. MAIN ;ep - this is the main routine driver
  1. D LOOP
  1. D EOJ
  1. Q
  1. ;
  1. LOOP ;-- loop through the globals and call DIK
  1. F BHLFNUM=4000,4004,4005,4006,4010,4011,4012 D Q:'BHLFNUM
  1. . S BHLGL=$P($G(^DIC(BHLFNUM,0,"GL")),"(")
  1. . S BHLGLE=$G(^DIC(BHLFNUM,0,"GL"))
  1. . S BHLDA=0 F S BHLDA=$O(@BHLGL@(BHLDA)) Q:'BHLDA D
  1. .. D DIK(BHLGLE,BHLDA)
  1. Q
  1. ;
  1. DIK(FNM,DA) ;-- kill the entry
  1. S DIK=FNM D ^DIK
  1. K DIK,DA
  1. Q
  1. ;
  1. EOJ ;-- kill variables
  1. D ^XBFMK
  1. D EN^XBVK("BHL")
  1. Q
  1. ;