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.
XUTMONH ;SEA/RDS - TaskMan: Option, XUTMON, Part 3 (Help Driver) ;5/3/94  11:40 ;
 ;;8.0;KERNEL;;Jul 10, 1995
 ;
 W !,"Use ZTMON" Q
 ;
RESET ;Setup parameters for DIR call
 W @IOF
 S DIR(0)="SAOM^S:Schedule List.;W:Waiting Lists.;O:One Waiting List.;J:Job List.;T:Task List.;L:Link Lists."
 S DIR("A",1)="                    Help For Monitor Taskman Option"
 S DIR("A",2)=""
 S DIR("A",3)="                         Schedule List."
 S DIR("A",4)="                         Waiting Lists."
 S DIR("A",5)="                         One Waiting List."
 S DIR("A",6)="                         Job List."
 S DIR("A",7)="                         Task List."
 S DIR("A",8)="                         Link Lists."
 S DIR("A",9)=""
 S DIR("A")="                    Select Type Of Listing: "
 S DIR("?")="^D HELP^XUTMONH"
 Q
 ;
BRANCH ;DO the selected listing
S G SCHED^XUTMONH1
W G WAIT^XUTMONH1
O G WAIT1^XUTMONH1
J G JOB^XUTMONH2
T G TASK^XUTMONH2
L G LINK^XUTMONH2
 Q
 ;
HELP ;Help text for '?'
 W !!,"Enter S to see the list of tasks scheduled for the future."
 W !,"Enter W to see all tasks that are waiting for output devices."
 W !,"Enter O to see the waiting list for a single device."
 W !,"Enter J to see all tasks waiting for submanagers."
 W !,"Enter T to see all currently running tasks."
 W !,"Enter L to see all tasks waiting for a dropped link to be restored."
 Q
 ;
SCREEN ;Screen out unknown users
 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).")
 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."
 Q:'$T  W !?5,"You may not use the monitor's help facility."
 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)
 Q
 ;
SELECT ;Select listing (main loop)
 N DIR,DIRUT,DTOUT,DUOUT,X,ZT,ZTNAME D SCREEN Q:'Y  N Y S ZTNAME=$P(^VA(200,DUZ,0),U)
 F ZT=0:0 D RESET,^DIR K DIR,DIRUT,DTOUT,DUOUT Q:U[Y  D @$E(Y)
 S Z=Y
 Q
 ;