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

AUM9304.m

Go to the documentation of this file.
  1. AUM9304 ; DSM/GTH - STANDARD TABLE UPDATES, 6APR93 MEMO ; [ 04/12/93 10:23 AM ]
  1. ;;93.1;TABLE MAINTENANCE;**1**;APR 06, 1993
  1. ;
  1. I '$G(DUZ) W !,"DUZ UNDEFINED OR ZERO.",! Q
  1. D HOME^%ZIS,DT^DICRW,INTRO
  1. S (DIR(0),DIR("B"))="Y"
  1. S DIR("A")="Do you want to queue the utility to TaskMan"
  1. S DIR("??")="^D Q2^AUM9304"
  1. D ^DIR G Q2:$D(DIRUT),START:'Y
  1. QUE ;
  1. S %DT="AERSX",%DT("A")="Requested Start Time: ",%DT("B")="T@2015",%DT(0)="NOW" D ^%DT
  1. I Y<1 W !,"QUEUE INFORMATION MISSING - NOT QUEUED",!!,"Okay...",! D Q2 Q
  1. S X=+Y D H^%DTC S ZTDTH=%H_","_%T
  1. S ZTRTN="START^AUM9304",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. START ;EP - From Taskman
  1. ;
  1. NEW XMSUB,XMDUZ,XMTEXT,XMY
  1. K ^TMP($J)
  1. D START^AUM93041,START^AUM93042
  1. S (XMSUB,XMDUZ)=$P($P($T(+1),";",2)," ",4,99),XMTEXT="^TMP($J,""RSLT"",",XMY(1)="",XMY(DUZ)="" D ^XMD
  1. K ^TMP($J)
  1. I $D(ZTQUEUED) S ZTREQ="@"
  1. E W !!,"The results are in your MailMan 'IN' basket.",!
  1. Q
  1. ;
  1. Q
  1. INTRO ;
  1. W ! F %=2:1:5 W $P($T(INTRO+%),";;",2),!
  1. ;;This patch updates standard tables according to the changes
  1. ;;specified in the memo dated April 6, 1993. Not all the
  1. ;;changes listed in that memo are automated. Please consult
  1. ;;that memo, and the mail message produced by this utility.
  1. Q
  1. Q2 ;EP - From DIR
  1. W ! F %=2:1:7 W $P($T(Q2+%),";;",2),!
  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 user 1. If you queue to
  1. ;;TaskMan, please read the mail message for results of this patch.
  1. Q