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

AUM6102.m

Go to the documentation of this file.
  1. AUM6102 ; IHS/ADC/GTH - STANDARD TABLE UPDATES, 06DEC95 BANYAN ; [ 12/11/95 4:16 PM ]
  1. ;;96.1;TABLE MAINTENANCE;**2**;OCT 26,1995
  1. ;
  1. I '$G(DUZ) W !,"DUZ UNDEFINED OR ZERO.",! Q
  1. D HOME^%ZIS,DT^DICRW,HELP("INTRO")
  1. S (DIR(0),DIR("B"))="Y"
  1. S DIR("A")="Do you want to queue the update to TaskMan"
  1. S DIR("??")="^D HELP^AUM6102(""Q2"")"
  1. D ^DIR
  1. I $D(DIRUT) D HELP("Q2") Q
  1. G START:'Y
  1. QUE ;
  1. S %DT="AERSX",%DT("A")="Requested Start Time: ",%DT("B")="T@2015",%DT(0)="NOW"
  1. D ^%DT
  1. I Y<1 W !,"QUEUE INFORMATION MISSING - NOT QUEUED" D Q2 G AUM6102
  1. S X=+Y
  1. D H^%DTC
  1. S ZTDTH=%H_","_%T
  1. S ZTRTN="START^AUM6102",ZTIO="",ZTDESC=$P($P($T(+1),";",2)," ",4,99)
  1. D ^%ZTLOAD,HOME^%ZIS
  1. I $D(ZTSK) W !!,"QUEUED TO TASK ",ZTSK,!!,"A mail message with the results will be sent to your MailMan 'IN' basket.",!
  1. E W !!,*7,"QUEUE UNSUCCESSFUL. RESTART UTILITY."
  1. Q
  1. ;
  1. START ;EP - From Taskman
  1. ;
  1. NEW XMSUB,XMDUZ,XMTEXT,XMY
  1. K ^TMP("AUM SCB",$J)
  1. D START^AUM61021,START^AUM61022
  1. S XMSUB=$P($P($T(+1),";",2)," ",4,99),XMDUZ=$S($G(DUZ):DUZ,1:.5),XMTEXT="^TMP(""AUM SCB"",$J,",XMY(1)="",XMY(DUZ)=""
  1. D ^XMD
  1. K ^TMP("AUM SCB",$J)
  1. I $D(ZTQUEUED) S ZTREQ="@" Q
  1. W !!,"The results are in your MailMan 'IN' basket.",!
  1. I $L($T(DIR^XBDIR)),$$DIR^XBDIR("Y","Want me to delete the routines in this patch","Y") G INTERACT^A9AUM1
  1. Q
  1. ;
  1. INTRO ;
  1. ;;This updates standard tables according to the changes specified in
  1. ;;the Banyan message time stamped 06Dec95@10:57:44 MST. Please consult
  1. ;;that message, and the mail message produced by this update.
  1. ;;
  1. ;;###
  1. ;
  1. Q2 ;
  1. ;;Answer "Y" if you want to queue this standard table update to TaskMan.
  1. ;;Answer "N" if you want to run this update interactively.
  1. ;;
  1. ;;If you run interactively, results will be displayed on your screen,
  1. ;;as well as in the mail message sent to you and user 1. If you queue
  1. ;;to TaskMan, please read the mail message for results of this update.
  1. ;;###
  1. ;
  1. HELP(L) ;EP - Display text at label L.
  1. W !
  1. F %=1:1 W !?4,$P($T(@L+%),";",3) Q:$P($T(@L+%+1),";",3)="###"
  1. Q
  1. ;