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

ACDGX5.m

Go to the documentation of this file.
  1. ACDGX5 ;IHS/ADC/EDE/KML - SAVE ACDVTMP TO UNIX/DOS FILE;
  1. ;;4.1;CHEMICAL DEPENDENCY MIS;;MAY 11, 1998
  1. EN ;EP
  1. K ACDTIME
  1. D ^XBKVAR,NOW^%DTC
  1. ;S XBDT=%I(1)_"/"_%I(2)_"/"_$E(%I(3),2,3)
  1. S XBDT=DT
  1. S XBTLE=$$FMTE^XLFDT(ACDDTF)_" thru "_$$FMTE^XLFDT(ACDDTT)_" @"
  1. V ;
  1. I '$D(ACDTIME) S ACDTIME=DTIME,DTIME=9000000000
  1. K XBMED
  1. ;
  1. ;Check for extract data found
  1. ;S 1=1
  1. I '$D(^ACDVTMP),'$D(^ACDPTMP) W !!,"No new data found to extract....." Q
  1. ;
  1. ;
  1. W !!,"Saving Data now....."
  1. S XBMED="F"
  1. D ^XBGSAVE
  1. ;I XBFLG W !!,*7,"Up Arrow not allowed." G V
  1. ;S DTIME=ACDTIME
  1. S DTIME=$$DTIME^XUP(DUZ)
  1. K XBMED,ACDTIME
  1. Q