XQOR4 ; SLC/KCM - Process "^^" jump ;11/18/92 09:53 ;
;;8.0;KERNEL;**56,62**;Jul 10, 1995
DJMP ;From: STAK^XQOR1
Q:'$D(^TMP("XQORS",$J,XQORS,"ITM",^TMP("XQORS",$J,XQORS,"ITM"),"IN"))
I $D(VALMCC) N XQORLMGR S XQORLMGR="" D FULL^VALM1 ; List Mgr Running?
S X=^TMP("XQORS",$J,XQORS,"ITM",^TMP("XQORS",$J,XQORS,"ITM"),"IN")
I '$L($P(X,"^",3)) W !!,"For entry ""^^",$P(X,"^",4),""" -"
S X=$P(X,"^",4,99) D EAT^XQORM1 ;Q:$E(X,1,2)'="^^"
S X=$P(X,"=",1),D="K.ORWARD",DIC="^ORD(101,",DIC(0)="SE" D IX^DIC K DIC,D
I Y<0!('$D(^ORD(101,+Y,0))) W:(X'["^")&(X'["?") !!,">>> ",X," not found or selected. No action taken." D:(X'["^")&(X'["?") READ S X="" G DJMPX
S ORNSV=+Y
K X F I=1:1:XQORS I $P(^TMP("XQORS",$J,XQORS,"VPT"),";",2)="ORD(101,",$D(^ORD(101,+^TMP("XQORS",$J,XQORS,"VPT"),21)) D DJMP1
S X="" F I=0:0 S X=$O(X(X)) Q:X="" N @X
S X=ORNSV_";ORD(101," K ORNSV
D EN^XQOR
DJMPX I $D(XQORLMGR) S VALMBCK="R" ; Refresh List Mgr
Q
DJMP1 F J=0:0 S J=$O(^ORD(101,+^TMP("XQORS",$J,XQORS,"VPT"),21,J)) Q:J'>0 I $D(^ORD(101,+^TMP("XQORS",$J,XQORS,"VPT"),21,J,0)) S X=^(0) I X?1A.ANP!(X?1"%".ANP) S X(X)=""
Q
SHDR ;Display sub-header
Q:'$D(@(^TMP("XQORS",$J,XQORS,"REF")_"0)")) S X=$P(^(0),"^",2) W:X'?1." " !!?(36-($L(X)\2)),"--- "_X_" ---"
Q
READ W !,"Press RETURN to continue: " R X:$S($D(DTIME):DTIME,1:300)
Q
C19 N X0 S X0=@(^TMP("XQORS",$J,XQORS,"REF")_"0)"),X=$P(X0,"^",6) I $L(X),'$D(^XUSEC(X,DUZ)) W !!,"This option "_$P(X0,"^")_" is locked.",! D READ S Y=-1 Q
S ORNSV=$P(X0,"^",9),X="NOW",%DT="T" D ^%DT S X=$P(Y,".",2) I X>$P(ORNSV,"-"),X<$P(ORNSV,"-",2) W !!,"Not Available: ",ORNSV,! K ORNSV D READ S Y=-1 Q
K ORNSV I "QMOXALDT"'[$P(^TMP("XQORS",$J,XQORS,"FLG"),"^") W !!,"This option type not supported by 'unwinder' routines.",! D READ S Y=-1 Q
S Y=1 Q
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HXQOR4 1829 printed Nov 22, 2024@17:16:07 Page 2
XQOR4 ; SLC/KCM - Process "^^" jump ;11/18/92 09:53 ;
+1 ;;8.0;KERNEL;**56,62**;Jul 10, 1995
DJMP ;From: STAK^XQOR1
+1 if '$DATA(^TMP("XQORS",$JOB,XQORS,"ITM",^TMP("XQORS",$JOB,XQORS,"ITM"),"IN"))
QUIT
+2 ; List Mgr Running?
IF $DATA(VALMCC)
NEW XQORLMGR
SET XQORLMGR=""
DO FULL^VALM1
+3 SET X=^TMP("XQORS",$JOB,XQORS,"ITM",^TMP("XQORS",$JOB,XQORS,"ITM"),"IN")
+4 IF '$LENGTH($PIECE(X,"^",3))
WRITE !!,"For entry ""^^",$PIECE(X,"^",4),""" -"
+5 ;Q:$E(X,1,2)'="^^"
SET X=$PIECE(X,"^",4,99)
DO EAT^XQORM1
+6 SET X=$PIECE(X,"=",1)
SET D="K.ORWARD"
SET DIC="^ORD(101,"
SET DIC(0)="SE"
DO IX^DIC
KILL DIC,D
+7 IF Y<0!('$DATA(^ORD(101,+Y,0)))
if (X'["^")&(X'["?")
WRITE !!,">>> ",X," not found or selected. No action taken."
if (X'["^")&(X'["?")
DO READ
SET X=""
GOTO DJMPX
+8 SET ORNSV=+Y
+9 KILL X
FOR I=1:1:XQORS
IF $PIECE(^TMP("XQORS",$JOB,XQORS,"VPT"),";",2)="ORD(101,"
IF $DATA(^ORD(101,+^TMP("XQORS",$JOB,XQORS,"VPT"),21))
DO DJMP1
+10 SET X=""
FOR I=0:0
SET X=$ORDER(X(X))
if X=""
QUIT
NEW @X
+11 SET X=ORNSV_";ORD(101,"
KILL ORNSV
+12 DO EN^XQOR
DJMPX ; Refresh List Mgr
IF $DATA(XQORLMGR)
SET VALMBCK="R"
+1 QUIT
DJMP1 FOR J=0:0
SET J=$ORDER(^ORD(101,+^TMP("XQORS",$JOB,XQORS,"VPT"),21,J))
if J'>0
QUIT
IF $DATA(^ORD(101,+^TMP("XQORS",$JOB,XQORS,"VPT"),21,J,0))
SET X=^(0)
IF X?1A.ANP!(X?1"%".ANP)
SET X(X)=""
+1 QUIT
SHDR ;Display sub-header
+1 if '$DATA(@(^TMP("XQORS",$JOB,XQORS,"REF")_"0)"))
QUIT
SET X=$PIECE(^(0),"^",2)
if X'?1." "
WRITE !!?(36-($LENGTH(X)\2)),"--- "_X_" ---"
+2 QUIT
READ WRITE !,"Press RETURN to continue: "
READ X:$SELECT($DATA(DTIME):DTIME,1:300)
+1 QUIT
C19 NEW X0
SET X0=@(^TMP("XQORS",$JOB,XQORS,"REF")_"0)")
SET X=$PIECE(X0,"^",6)
IF $LENGTH(X)
IF '$DATA(^XUSEC(X,DUZ))
WRITE !!,"This option "_$PIECE(X0,"^")_" is locked.",!
DO READ
SET Y=-1
QUIT
+1 SET ORNSV=$PIECE(X0,"^",9)
SET X="NOW"
SET %DT="T"
DO ^%DT
SET X=$PIECE(Y,".",2)
IF X>$PIECE(ORNSV,"-")
IF X<$PIECE(ORNSV,"-",2)
WRITE !!,"Not Available: ",ORNSV,!
KILL ORNSV
DO READ
SET Y=-1
QUIT
+2 KILL ORNSV
IF "QMOXALDT"'[$PIECE(^TMP("XQORS",$JOB,XQORS,"FLG"),"^")
WRITE !!,"This option type not supported by 'unwinder' routines.",!
DO READ
SET Y=-1
QUIT
+3 SET Y=1
QUIT