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

APCPZSET.m

Go to the documentation of this file.
APCPZSET ; IHS/TUCSON/LAB - DISPLAY PCC EXPORT LOG DATA AUGUST 14, 1992 ; [ 04/29/98  1:37 PM ]
 ;;2.0;IHS PCC DATA EXTRACTION SYSTEM;;APR 03, 1998
EN1 ;
 W:$D(IOF) @IOF
 W !!,"Reset Visit Pointers in 21 multiple for REDO",!
 S DIC="^APCPLOG(",DIC(0)="AEMQ" D ^DIC K DIC I Y=-1 W !!,"Goodbye" G XIT
 S APCPLOG=+Y
 I $D(^APCPLOG(APCPLOG,21)) W !!,"That Log HAS NOT BEEN PURGED!!" G EN1
 S B=$P(^APCPLOG(APCPLOG,0),U,1),E=$P(^(0),U,2)
 S S=$$FMADD^XLFDT(B,-1)_.9999
 S C=0 F  S S=$O(^AUPNVSIT("B",S)) Q:$P(S,".")>E  D
 .S V=0 F  S V=$O(^AUPNVSIT("B",S,V)) Q:V'=+V  D
 ..Q:$P(^AUPNVSIT(V,0),U,11)  ;deleted visit
 ..W "." S C=C+1,^APCPLOG(APCPLOG,21,V,0)=V_"^1"
 S ^APCPLOG(APCPLOG,21,0)="^9001005.2101PA^"_C_"^"_C
 D XIT
 Q
XIT ;EP
 K APCPLOG,APCPREC
 Q