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

ZIBCLU.m

Go to the documentation of this file.
  1. ZIBCLU ; IHS/ADC/GTH - GENERAL PURPOSE CLEAN UP UTILITY GLOBALS - DRIVER TO GET UCI ; [ 02/07/97 3:02 PM ]
  1. ;;3.0;IHS/VA UTILITIES;;FEB 07, 1997
  1. ;
  1. ;THIS ROUTINE WILL INITIATE A JOB RUNNING ^%ZIBCLU0 IN EACH UCI
  1. ;AND THEN WAIT 5 SECONDS TO ELAPSE BEFORE GETTING THE NEXT UCI
  1. ;SKIP THE UCI THIS TASK IS IN AND THEN RUN ^%ZIBCLU0 HERE
  1. ; - %ZIBCLU0 WILL REMOVE ALL DANGLING ^UTILITY,^XUTL,^ZUT ENTRIES
  1. ;THIS ROUTINE IS USUALLY STARTED VIA TASKMAN BY SCHEDULING
  1. ;THE -ZIBCLU- OPTION WHICH RUNS THIS ROUTINE
  1. ;
  1. ;DSM ONLY - $ZU(ZIBI) RETURNS <NOUCI> ERROR AT END OF UCI LIST
  1. ;MSM ONLY - $ZU(ZIBI) RETURNS -NULL- VALUE AT END OF UCI LIST
  1. ;
  1. W !,*7,"Entry not permitted here!"
  1. Q
  1. ;
  1. EN ;
  1. S X="%ZIBCLU0"
  1. D RCHK^XB
  1. I $G(XBFAIL) W:'$D(ZTQUEUED) !,"Cannot proceed because ^%ZIBCLU0 is not in MGR" Q
  1. S $ZT="ZT^ZIBCLU"
  1. F ZIBI=1:1 S ZIBUCI=$ZU(ZIBI) Q:ZIBUCI="" I ZIBUCI'=$ZU(0) J ^%ZIBCLU0[ZIBUCI] H 5
  1. D ^%ZIBCLU0 ; CLEAN UP THIS UCI
  1. ZT ;END OF UCI LIST
  1. I $ZV?1"DSM".E&($ZE'?1"<NOUCI>".E) D ^%ET
  1. S $ZT=""
  1. KILL XBFAIL,ZIBI,ZIBUCI
  1. Q
  1. ;