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

AUMDELR.m

Go to the documentation of this file.
  1. AUMDELR ; IHS/ASDST/GTH - AN AUM UTILITY FOR AUM ; [ 10/31/2001 3:40 PM ]
  1. ;;02.1;TABLE MAINTENANCE;**1**;SEP 28,2001
  1. ;
  1. DEL(AUMN,AUMA) ;EP - Delete routines in namespace "AUMN", if AUMA=0. If AUMA=1, single routine.
  1. ; It's up to the calling routine to make sure it's not deleted, if
  1. ; the calling routine is the current routine.
  1. KILL ^TMP("AUMDELR",$J)
  1. I $G(AUMA)=1 S ^TMP("AUMDELR",$J,AUMN)=""
  1. E Q:'$$RSEL^ZIBRSEL(AUMN_"*","^TMP(""AUMDELR"","_$J_",")
  1. ;
  1. NEW X
  1. ;
  1. S X=""
  1. F S X=$O(^TMP("AUMDELR",$J,X)) Q:X="" X ^%ZOSF("DEL") I $G(XPDA) D BMES^XPDUTL(X_$E("...........",1,11-$L(X))_"<poof'd>")
  1. KILL ^TMP("AUMDELR",$J)
  1. Q
  1. ;