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

BCHUTIL1.m

Go to the documentation of this file.
  1. BCHUTIL1 ; IHS/CMI/LAB - UTILITIES ;
  1. ;;2.0;IHS RPMS CHR SYSTEM;;OCT 23, 2012;Build 27
  1. ;
  1. ;more utilities, called package wide
  1. PAUSE ;EP
  1. Q:$E(IOST)'="C"!(IO'=IO(0))
  1. W ! S DIR(0)="EO",DIR("A")="Hit return to continue...." D ^DIR K DIR S:$D(DUOUT) DIRUT=1
  1. Q
  1. ;
  1. DONE ;ENTRY POINT - END OF REPORT TIME DISPLAY
  1. I $D(BCHET) S BCHTS=(86400*($P(BCHET,",")-$P(BCHBT,",")))+($P(BCHET,",",2)-$P(BCHBT,",",2)),BCHH=$P(BCHTS/3600,".") S:BCHH="" BCHH=0 D
  1. . S BCHTS=BCHTS-(BCHH*3600),BCHM=$P(BCHTS/60,".")
  1. . S:BCHM="" BCHM=0 S BCHTS=BCHTS-(BCHM*60),BCHS=BCHTS
  1. . W !!,"RUN TIME (H.M.S): ",BCHH,".",BCHM,".",BCHS
  1. I $E(IOST)="C",IO=IO(0) S DIR(0)="EO",DIR("A")="End of report. HIT RETURN" D ^DIR K DIR S:$D(DUOUT) DIRUT=1
  1. W:$D(IOF) @IOF
  1. K BCHTS,BCHS,BCHH,BCHM,BCHET
  1. D ^BCHUEKL
  1. Q