- AUM9405 ; DSD/GTH - STANDARD TABLE UPDATES, 06MAY94 BANYAN ; [ 05/06/94 3:57 PM ]
- ;;94.1;TABLE MAINTENANCE;**4**;DECEMBER 15, 1993
- ;
- I '$G(DUZ) W !,"DUZ UNDEFINED OR ZERO.",! Q
- D HOME^%ZIS,DT^DICRW,INTRO
- S (DIR(0),DIR("B"))="Y"
- S DIR("A")="Do you want to queue the utility to TaskMan"
- S DIR("??")="^D Q2^AUM9405"
- D ^DIR G Q2:$D(DIRUT),START:'Y
- QUE ;
- S %DT="AERSX",%DT("A")="Requested Start Time: ",%DT("B")="T@2015",%DT(0)="NOW" D ^%DT
- I Y<1 W !,"QUEUE INFORMATION MISSING - NOT QUEUED",!!,"Okay...",! D Q2 Q
- S X=+Y D H^%DTC S ZTDTH=%H_","_%T
- S ZTRTN="START^AUM9405",ZTIO="",ZTDESC=$P($P($T(+1),";",2)," ",4,99)
- D ^%ZTLOAD,HOME^%ZIS
- I $D(ZTSK) W !!,"QUEUED TO TASK ",ZTSK,!!,"A mail message with the results will be sent to your MailMan 'IN' basket.",!
- E W !!,*7,"QUEUE UNSUCCESSFUL. RESTART UTILITY."
- Q
- START ;EP - From Taskman
- ;
- NEW XMSUB,XMDUZ,XMTEXT,XMY
- K ^TMP($J)
- D START^AUM94051,START^AUM94052
- S (XMSUB,XMDUZ)=$P($P($T(+1),";",2)," ",4,99),XMTEXT="^TMP($J,""RSLT"",",XMY(1)="",XMY(DUZ)="" D ^XMD
- K ^TMP($J)
- I $D(ZTQUEUED) S ZTREQ="@"
- E W !!,"The results are in your MailMan 'IN' basket.",!
- Q
- ;
- INTRO ;
- W ! F %=2:1:5 W ?5,$P($T(INTRO+%),";;",2),!
- ;;This patch updates standard tables according to the changes
- ;;specified in the Banyan message time stamped 06May94@14:14:13 MDT,
- ;;Please consult that memo, and the mail message produced by this
- ;;utility.
- Q
- Q2 ;EP - From DIR
- W ! F %=2:1:7 W ?5,$P($T(Q2+%),";;",2),!
- ;;Answer "Y" if you want to queue this standard table update to TaskMan.
- ;;Answer "N" if you want to run this update interactively.
- ;;
- ;;If you run interactively, results will be displayed on your screen,
- ;;as well as in the mail message sent to you and user 1. If you queue
- ;;to TaskMan, please read the mail message for results of this patch.
- Q
- AUM9405 ; DSD/GTH - STANDARD TABLE UPDATES, 06MAY94 BANYAN ; [ 05/06/94 3:57 PM ]
- +1 ;;94.1;TABLE MAINTENANCE;**4**;DECEMBER 15, 1993
- +2 ;
- +3 IF '$GET(DUZ)
- WRITE !,"DUZ UNDEFINED OR ZERO.",!
- QUIT
- +4 DO HOME^%ZIS
- DO DT^DICRW
- DO INTRO
- +5 SET (DIR(0),DIR("B"))="Y"
- +6 SET DIR("A")="Do you want to queue the utility to TaskMan"
- +7 SET DIR("??")="^D Q2^AUM9405"
- +8 DO ^DIR
- IF $DATA(DIRUT)
- GOTO Q2
- IF 'Y
- GOTO START
- QUE ;
- +1 SET %DT="AERSX"
- SET %DT("A")="Requested Start Time: "
- SET %DT("B")="T@2015"
- SET %DT(0)="NOW"
- DO ^%DT
- +2 IF Y<1
- WRITE !,"QUEUE INFORMATION MISSING - NOT QUEUED",!!,"Okay...",!
- DO Q2
- QUIT
- +3 SET X=+Y
- DO H^%DTC
- SET ZTDTH=%H_","_%T
- +4 SET ZTRTN="START^AUM9405"
- SET ZTIO=""
- SET ZTDESC=$PIECE($PIECE($TEXT(+1),";",2)," ",4,99)
- +5 DO ^%ZTLOAD
- DO HOME^%ZIS
- +6 IF $DATA(ZTSK)
- WRITE !!,"QUEUED TO TASK ",ZTSK,!!,"A mail message with the results will be sent to your MailMan 'IN' basket.",!
- +7 IF '$TEST
- WRITE !!,*7,"QUEUE UNSUCCESSFUL. RESTART UTILITY."
- +8 QUIT
- START ;EP - From Taskman
- +1 ;
- +2 NEW XMSUB,XMDUZ,XMTEXT,XMY
- +3 KILL ^TMP($JOB)
- +4 DO START^AUM94051
- DO START^AUM94052
- +5 SET (XMSUB,XMDUZ)=$PIECE($PIECE($TEXT(+1),";",2)," ",4,99)
- SET XMTEXT="^TMP($J,""RSLT"","
- SET XMY(1)=""
- SET XMY(DUZ)=""
- DO ^XMD
- +6 KILL ^TMP($JOB)
- +7 IF $DATA(ZTQUEUED)
- SET ZTREQ="@"
- +8 IF '$TEST
- WRITE !!,"The results are in your MailMan 'IN' basket.",!
- +9 QUIT
- +10 ;
- INTRO ;
- +1 WRITE !
- FOR %=2:1:5
- WRITE ?5,$PIECE($TEXT(INTRO+%),";;",2),!
- +2 ;;This patch updates standard tables according to the changes
- +3 ;;specified in the Banyan message time stamped 06May94@14:14:13 MDT,
- +4 ;;Please consult that memo, and the mail message produced by this
- +5 ;;utility.
- +6 QUIT
- Q2 ;EP - From DIR
- +1 WRITE !
- FOR %=2:1:7
- WRITE ?5,$PIECE($TEXT(Q2+%),";;",2),!
- +2 ;;Answer "Y" if you want to queue this standard table update to TaskMan.
- +3 ;;Answer "N" if you want to run this update interactively.
- +4 ;;
- +5 ;;If you run interactively, results will be displayed on your screen,
- +6 ;;as well as in the mail message sent to you and user 1. If you queue
- +7 ;;to TaskMan, please read the mail message for results of this patch.
- +8 QUIT