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

DGRPCS.m

Go to the documentation of this file.
DGRPCS ;ALB/MRL - CONSISTENCY STATUS CHECKER ; 12 FEB 1987
 ;;5.3;Registration;;Aug 13, 1993
 D ON^DGRPC I DGER K DGER S DGCONRUN=1 D KVAR^DGRPCE Q
 S IOP="HOME" D ^%ZIS K IOP S DGCONRUN=$S($D(^DG(43,1,"CON")):^("CON"),1:0)
 F I=1,3,5 S J=$P(DGCONRUN,"^",I),J1=$P(DGCONRUN,"^",I+1) I +J,J1'>J,J1'=J S Y=J X ^DD("DD") S DGCONR(I)="'INCONSISTENCY "_$S(I=1:"PURGE",I=3:"REBUILD",1:"UPDATE")_"' OPTION RUNNING FROM "_Y_"."
 S DGCONRUN=0 I ION'="",$O(DGCONR(0))'="" W !!,"UNABLE TO RUN THIS OPTION AT CURRENT TIME!!",*7,! F I=0:0 S I=$O(DGCONR(I)) Q:'I  W !,DGCONR(I) S DGCONRUN=1
Q K DGCONR,DGER,I,J,J1,Y
 Q