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

BCHEXEOJ.m

Go to the documentation of this file.
BCHEXEOJ ; IHS/CMI/LAB - Clean upand EOJ for export ; 
 ;;2.0;IHS RPMS CHR SYSTEM;;OCT 23, 2012;Build 27
 I $D(BCH("ERROR COUNT")),BCH("ERROR COUNT") W:'$D(ZTQUEUED) !!,"One or more errors were encountered during this run!",!
 K BCHS,BCHO,BCHV,BCHT,BCH,BCHR,BCHRTYPE,BCHAFF,BCHC,BCHCOM,BCHDISC,BCHDUZ2,BCHE,BCHINI,BCHLOC,BCHNAME,BCHPAT,BCHREC,BCHTMP,BCHX,BCHAGE,BCHPOVD,BCHCPOV
 K DIC,DIR,D0,D,DQ
 K APCDOVRR,BCHTX
 K AUPNDOB,AUPNDOD,AUPNPAT,AUPNSEX,AUPNVSIT,AUPNDAYS
 K BCHBS,BCHCNT,BCHCNTL,BCHCNT1,BCHCNT2,BCHCNTR
 K %,%C,%H,%H1,%H2,%I,%Y,D,D0,D1,DA,DI,DIC,DIE,DLAYGO,DQ,DR,I,L,X,Y
 I $D(ZTQUEUED) S ZTREQ="@"
 Q
RUNTIME ;EP - SHOW RUN TIME  *** CALLED BY ^BCHREDO ***
 Q:$D(ZTQUEUED)
 S B=BCH("BT")
 S E=$HOROLOG
 S T=(86400*($P(E,",")-$P(B,",")))+($P(E,",",2)-$P(B,",",2)),H=$P(T/3600,".")
 S:H="" H=0
 S T=T-(H*3600),M=$P(T/60,".")
 S:M="" M=0
 S T=T-(M*60),S=T
 W !!,"RUN TIME (H.M.S): ",H,".",M,".",S
 K B,E,H,M,S,T
 Q
 ;