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

XUTMONH.m

Go to the documentation of this file.
  1. XUTMONH ;SEA/RDS - TaskMan: Option, XUTMON, Part 3 (Help Driver) ;5/3/94 11:40 ; [ 04/02/2003 8:29 AM ]
  1. ;;8.0;KERNEL;**1002,1003,1004,1005,1007**;APR 1, 2003
  1. ;;8.0;KERNEL;;Jul 10, 1995
  1. ;
  1. W !,"Use ZTMON" Q
  1. ;
  1. RESET ;Setup parameters for DIR call
  1. W @IOF
  1. S DIR(0)="SAOM^S:Schedule List.;W:Waiting Lists.;O:One Waiting List.;J:Job List.;T:Task List.;L:Link Lists."
  1. S DIR("A",1)=" Help For Monitor Taskman Option"
  1. S DIR("A",2)=""
  1. S DIR("A",3)=" Schedule List."
  1. S DIR("A",4)=" Waiting Lists."
  1. S DIR("A",5)=" One Waiting List."
  1. S DIR("A",6)=" Job List."
  1. S DIR("A",7)=" Task List."
  1. S DIR("A",8)=" Link Lists."
  1. S DIR("A",9)=""
  1. S DIR("A")=" Select Type Of Listing: "
  1. S DIR("?")="^D HELP^XUTMONH"
  1. Q
  1. ;
  1. BRANCH ;DO the selected listing
  1. S G SCHED^XUTMONH1
  1. W G WAIT^XUTMONH1
  1. O G WAIT1^XUTMONH1
  1. J G JOB^XUTMONH2
  1. T G TASK^XUTMONH2
  1. L G LINK^XUTMONH2
  1. Q
  1. ;
  1. HELP ;Help text for '?'
  1. W !!,"Enter S to see the list of tasks scheduled for the future."
  1. W !,"Enter W to see all tasks that are waiting for output devices."
  1. W !,"Enter O to see the waiting list for a single device."
  1. W !,"Enter J to see all tasks waiting for submanagers."
  1. W !,"Enter T to see all currently running tasks."
  1. W !,"Enter L to see all tasks waiting for a dropped link to be restored."
  1. Q
  1. ;
  1. SCREEN ;Screen out unknown users
  1. S Y=1,Z="" I $S($D(DUZ)[0:1,DUZ="":1,1:0) W !!?5,"I do not know who you are (your DUZ variable is ",$S($D(DUZ)[0:"undefined).",1:"null).")
  1. E I $D(^VA(200,DUZ,0))[0 W !!?5,"User # ",DUZ," is not defined in this uci. I'm not sure who you are."
  1. Q:'$T W !?5,"You may not use the monitor's help facility."
  1. W ! F ZT=0:0 R !,"Press RETURN to continue: ",Y:$S($D(DTIME)#2:DTIME,1:60) S Z=Y Q:Y=""!(Y="^") W !!?5,"Enter RETURN.",! W:Y'["?" $C(7)
  1. Q
  1. ;
  1. SELECT ;Select listing (main loop)
  1. N DIR,DIRUT,DTOUT,DUOUT,X,ZT,ZTNAME D SCREEN Q:'Y N Y S ZTNAME=$P(^VA(200,DUZ,0),U)
  1. F ZT=0:0 D RESET,^DIR K DIR,DIRUT,DTOUT,DUOUT Q:U[Y D @$E(Y)
  1. S Z=Y
  1. Q
  1. ;