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

BDWRSET.m

Go to the documentation of this file.
BDWRSET ; IHS/CMI/LAB - RESET TX LOG AUGUST 14, 1992 ;
 ;;1.0;IHS DATA WAREHOUSE;;JAN 23, 2006
 ;IHS/CMI/LAB - XTMP
 W !!,"This routine will reset the Data Warehouse Export Log.  You must be",!,"absolutely sure that you have corrected the underlying problem that caused ","the Export process to fail in the first place!",!!
 W "The Data Warehouse Export log entry you choose will be REMOVED from the log",!,"file and all Utility and Data globals associated with that run will be killed!!",!!
 W "You must now select the Log Entry to be RESET.  <<< SELECT CAREFULLY >>>",!
 S DIC="^BDWXLOG(",DIC(0)="AEMQ",DIC("S")="I $P(^BDWXLOG(Y,0),U,15)'=""C"",$P(^BDWXLOG(Y,0),U,15)'=""P""" D ^DIC K DIC I Y=-1 W !!,"Goodbye" G EOJ
 S BDWDFN=+Y
 D DISP
 S DIR(0)="Y",DIR("A")="Are you sure you want to do this",DIR("B")="N" D ^DIR K DIR S:$D(DUOUT) DIRUT=1
 I Y'=1 D EOJ Q
DIK ;
 S DA=BDWDFN,DIK="^BDWXLOG(" D ^DIK
 K ^XTMP("BDWDR"),^XTMP("BDWREDO")
 D EOJ
 Q
DISP ;
DIQ ; CALL TO DIQ
 W !!,"Information for Log Entry ",BDWDFN,!
 S DIC="^BDWXLOG(",DA=BDWDFN,DR="0;31",DIQ(0)="C" D EN^DIQ
 K DIC,DIQ,DR,DA
 Q
EOJ ;
 K DA,DIK,BDWDFN,Y,X,DIR,DIRUT
 Q