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

IBDEPRE.m

Go to the documentation of this file.
  1. IBDEPRE ; ALB/ISC - PREINIT FOR USE BY IMP/EXP UTILITY ;AUG 13, 1993
  1. ;;3.0;AUTOMATED INFO COLLECTION SYS;;APR 24, 1997
  1. ;
  1. P D NOW^%DTC S IBDBDT("IBDE")=$H,DT=$$DT^XLFDT,Y=% W !!,"Initialization Started: " D DT^DIQ
  1. ;
  1. ;
  1. PRE W !!
  1. ;
  1. USER I $S('($D(DUZ)#2):1,'$D(^VA(200,+DUZ,0)):1,'$D(DUZ(0)):1,DUZ(0)'="@":1,1:0) W !!?3,"The variable DUZ must be set to an active user code and the variable",!?3,"DUZ(0) must equal '@' to initialize.",! K DIFQ G NO
  1. ;
  1. Q:'$D(DIFQ)
  1. ;
  1. CHECK ;checks if there is anything in the workspace
  1. N COUNT,FILE,QUIT
  1. S (QUIT,COUNT)=0
  1. F S FILE=$P($T(FILES+COUNT),";;",2) Q:QUIT!(FILE="") D Q:QUIT
  1. .S COUNT=COUNT+1
  1. .I $O(@FILE@(0)) D
  1. ..K DIR S DIR(0)="Y",DIR("B")="YES"
  1. ..W !,"Please check your work space from the import/export utility option.",!!,"These INITS require that your work space be clear, currently it is not.",!,"Would you like to clear the work space now?"
  1. ..D ^DIR
  1. ..I $D(DIRUT)!(Y=0) K DIFQ
  1. ..S QUIT=1
  1. ;
  1. I '$D(DIFQ) W !,"INITIALIZATION ABORTED" K IBDBDT
  1. K DIR,DIRUT,DUOUT
  1. Q
  1. ;
  1. NO I '$D(DIFQ) W !,"INITIALIZATION ABORTED" K IBDBDT
  1. K DIR,DIRUT,DUOUT
  1. Q
  1. ;
  1. FILES ;;^IBE(358)
  1. ;;^IBE(358.1)