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

APCPFIXD.m

Go to the documentation of this file.
  1. APCPFIXD ; IHS/TUCSON/LAB - OHPRD-TUCSON/EDE FIX "APCIS" XREF AUGUST 14, 1992 ; [ 09/16/02 12:08 PM ]
  1. ;;2.0;IHS PCC DATA EXTRACTION SYSTEM;**6**;APR 03, 1998
  1. ;
  1. ; This should not be necessary, but alas, things never seem to
  1. ; be the way they should be. If this routine finds any xrefs
  1. ; to delete, it is symptomatic of a problem elsewhere.
  1. ;
  1. START ;
  1. Q
  1. W:'$D(ZTQUEUED) !!,"Checking ""APCIS"" xref <WAIT>"
  1. S U="^"
  1. S D="" F S D=$O(^AUPNVSIT("APCIS",D)) Q:D'=+D D CHECK
  1. K D,X,E
  1. Q
  1. ;
  1. CHECK ;
  1. S X="" F S X=$O(^AUPNVSIT("APCIS",D,X)) Q:X'=+X I $P(^AUPNVSIT(X,0),U,11) D KILL
  1. Q
  1. ;
  1. KILL ;
  1. S E=1
  1. W:'$D(ZTQUEUED) !,X," ",$D(^AUPNVSIT("APCIS",$P(^AUPNVSIT(X,0),U,2),X)) K ^(X)
  1. K ^AUPNVSIT("APCIS",D,X)
  1. Q