XU8P327 ;ISC-SF/GB-DELETE BOGUS PERSON CLASS RECORDS ;09/19/2003 13:12 [ 01/09/2004 4:23 PM ]
;;8.0;KERNEL;**327,1010**;Jul 10, 1995
Q
POST ; Delete bogus PERSON CLASS records from file 200
; ^VA(200,duz,"USC1",-1,0)="^^3030824"
N I,J
S I=0
F S I=$O(^VA(200,I)) Q:'I D
. S J=""
. F S J=$O(^VA(200,I,"USC1",J)) Q:J'<0 K ^(J,0)
Q
XU8P327 ;ISC-SF/GB-DELETE BOGUS PERSON CLASS RECORDS ;09/19/2003 13:12 [ 01/09/2004 4:23 PM ]
+1 ;;8.0;KERNEL;**327,1010**;Jul 10, 1995
+2 QUIT
POST ; Delete bogus PERSON CLASS records from file 200
+1 ; ^VA(200,duz,"USC1",-1,0)="^^3030824"
+2 NEW I,J
+3 SET I=0
+4 FOR
SET I=$ORDER(^VA(200,I))
IF 'I
QUIT
Begin DoDot:1
+5 SET J=""
+6 FOR
SET J=$ORDER(^VA(200,I,"USC1",J))
IF J'<0
QUIT
KILL ^(J,0)
End DoDot:1
+7 QUIT