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

AMHEXEOJ.m

Go to the documentation of this file.
AMHEXEOJ ; IHS/CMI/LAB - Clean up and EOJ AUGUST 14, 1992 ;
 ;;4.0;IHS BEHAVIORAL HEALTH;;MAY 14, 2010
 L
 I $D(AMH("ERROR COUNT")),AMH("ERROR COUNT") W:'$D(ZTQUEUED) !!,"One or more errors were encountered during this run!",!
 K AMHS,AMHO,AMHV,AMHT,AMH,AMHR,AMHRTYPE,AMHAFF,AMHC,AMHCOM,AMHDISC,AMHDUZ2,AMHE,AMHINI,AMHLOC,AMHNAME,AMHPAT,AMHREC,AMHTMP,AMHX
 K DIC,DIR,D0,D,DQ
 K APCDOVRR,AMHTX
 K AUPNDOB,AUPNDOD,AUPNPAT,AUPNSEX,AUPNVSIT,AUPNDAYS
 K AMHBS,AMHCNT,AMHCNTL,AMHCNT1,AMHCNT2,AMHCNTR
 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 ^AMHREDO ***
 Q:$D(ZTQUEUED)
 S B=AMH("BT")
 S E=$HOROLOG
 S T=(86400*($P(E,",",1)-$P(B,",",1)))+($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
 ;