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

AUJOBK.m

Go to the documentation of this file.
AUJOBK ;KILL A JOB [ 08/13/85  3:51 PM ]
 ;IHS-OKLA CITY AREA OFFICE-LMD
VAR S USTO=300
UCI X ^%ZOSF("UCI") S AU("UCI")=$P(Y,",",1) S X="MGR" D ^%AUXUCI
SY D ^%SY W !!,"KILL which job? " D SBRS G ORIGUCI:$D(DUOUT)!$D(DFOUT)!$D(DTOUT)!$D(DLOUT),QUES:$D(DQOUT)!(+Y<1) S AU("JOB")=+Y
RJD S ANS="J"_AU("JOB") D RESTORE+1^RJD
ORIGUCI S X=AU("UCI") D ^%AUXUCI
END K AU Q
QUES W !!,"Enter the JOB NUMBER of the job to be killed." G SY
SBRS K DFOUT,DTOUT,DUOUT,DQOUT,DLOUT R Y:USTO I '$T W *7 R Y:5 G SBRS:Y="." I '$T S (DTOUT,Y)="" Q
 S:Y="/.," (DFOUT,Y)="" S:Y="" DLOUT="" S:Y="^" (DUOUT,Y)="" S:Y?1"?".E!(Y["^") (DQOUT,Y)=""
 Q