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

KLASMAN1.m

Go to the documentation of this file.
KLASMAN1 ;BIR/PDW KLASMAN CONTINUED;DEC 18,1990@13:54:58
 ;;1.0
DIRECT ; DIRECT KEYBOARD INPUT TO GLOBAL (FOR TAPE)
 S TN=$P($H,",",2),TL=TN,TL1=TN,M=LIMIT,C=SCOUNT,ZE="",X=240 X ^%ZOSF("RM") U IO(0) W !,"Entering Direct Mode",!
 W !,"Enter CTRL-",$C(CTRL+64)," Twice to End Direct Mode",!
 X ^%ZOSF("EON"),^%ZOSF("TRMON")
RD W ZE,*17 R X#200:2 X TMC W *19 S X=ZE_X,ZE="" I $T D:$L(X) BCS S X="" G:Y=CTRL QRD S ZE=$C(Y)
 S TN=$P($H,";",2) D BCS I TN-TL>90 U IO W " ",*127 S TL=TN
 I TN-TL1>90 S X=" "_$C(8),TL1=TN D BCS
 G RD
BCS Q:'$L(X)  S:C=M C=0 S TL1=TN,C=C+1,^KLAS(1200,JOB,"S",C,0)=X,^KLAS(1200,JOB,"P1")=C,KLW=C Q
QRD W *17,*7 R X#1:8 X TMC W *19 I '$T S ZE=$C(CTRL)_X G RD 
 I Y'=CTRL S ZE=$C(CTRL)_$C(Y) G RD
QRD1 S SCOUNT=C X ^%ZOSF("EOFF") U IO(0) W *17,!,"Ending Direct Mode",!,"----->>ON LINE MODE<<",! X ^%ZOSF("EOFF")
 Q
 ;----------------------------------
CON G CON^KLASMAN
CLEAN ;
 K ^KLAS(1200,"B") S DIK="^KLAS(1200," D IXALL^DIK K DIK W !,"SELECT CLASS TO BE CLEARED",! S DIC="^KLAS(1200,",DIC(0)="EQZ",X="?" D ^DIC S DIC(0)="AEQZ" D ^DIC I +Y'>0 W !,"NONE SELECTED",! Q
 S KNUM=$P(Y(0),"^",4),CLNUM=$P(Y(0),"^",3),JOB=+Y D CLEAN^KLASMAN0
 Q
XRAY D XRAY^KLASDIA Q
XX D XX^KLASDIA Q
PICK D PICKUP^KLASMAN0 S KLW=SCOUNT Q