PRCTQUES ;WISC@ALTOONA/RGY-MISC UTILITIES ;01 Jun 90/3:26 PM
;;5.1;IFCAP;;Oct 20, 2000
;Per VHA Directive 10-93-142, this routine should not be modified.
;
ENQ S QUD=$P(X,"^",2) W !!,$P(X,"^")," " W:QUD]"" QUD,"// " R QUX:DTIME W:'$T *7 S:'$T QUX="^" S:QUX="" QUX=QUD G:"^"[QUX KILL I QUX["?",$P(X,"^",6)]"" D @$P(X,"^",5,6) G ENQ
F QUX1=1:1 Q:QUX1>$L(QUX) I $A($E(QUX,QUX1))>96,$A($E(QUX,QUX1))<123 S QUX=$E(QUX,1,QUX1-1)_$C($A($E(QUX,QUX1))-32)_$E(QUX,QUX1+1,999)
S QUD=";"_$P(X,"^",3)_";" G:QUD'[(";"_QUX_":") VAR S QUX1=$E(QUD,$F(QUD,QUX_":"),($F(QUD,";",$F(QUD,QUX_":"))-2)) G:QUX1[":" VAR W " ",QUX1 G KILL
VAR F QUX1=2:1 S QUD=$P($P($P(X,"^",3),":",QUX1),";") Q:QUD="" I $P(QUD,QUX)="" W $S($P(X,"^",2)=QUX:" "_QUX,1:"")_$P(QUD,QUX,2,99) S QUX=$P($P($P(X,"^",3),";",QUX1-1),":") G KILL
F QUX1=1:1 S QUD=$P($P(X,"^",4),",",QUX1) Q:QUD="" I $P(QUD,QUX)="" W $S($P(X,"^",2)=QUX:" "_QUX,1:"")_$P(QUD,QUX,2,99) S QUX=QUD G KILL
PAT I $P(X,"^",7)]"",@$P(X,"^",7,999) G KILL
W *7," ???" G ENQ
KILL S X=QUX K QUX,QUX1,QUD Q
ENC ;
S X=$P($P(";"_$P(Y,"^",3),";"_X_":",2),";") Q
ENYN S $P(X,"^",3)="1:YES;0:NO" S:$P(X,"^",6)="" $P(X,"^",5,6)="YN^PRCTMES1" G ENQ
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HPRCTQUES 1192 printed Dec 13, 2024@02:19:23 Page 2
PRCTQUES ;WISC@ALTOONA/RGY-MISC UTILITIES ;01 Jun 90/3:26 PM
+1 ;;5.1;IFCAP;;Oct 20, 2000
+2 ;Per VHA Directive 10-93-142, this routine should not be modified.
+3 ;
ENQ SET QUD=$PIECE(X,"^",2)
WRITE !!,$PIECE(X,"^")," "
if QUD]""
WRITE QUD,"// "
READ QUX:DTIME
if '$TEST
WRITE *7
if '$TEST
SET QUX="^"
if QUX=""
SET QUX=QUD
if "^"[QUX
GOTO KILL
IF QUX["?"
IF $PIECE(X,"^",6)]""
DO @$PIECE(X,"^",5,6)
GOTO ENQ
+1 FOR QUX1=1:1
if QUX1>$LENGTH(QUX)
QUIT
IF $ASCII($EXTRACT(QUX,QUX1))>96
IF $ASCII($EXTRACT(QUX,QUX1))<123
SET QUX=$EXTRACT(QUX,1,QUX1-1)_$CHAR($ASCII($EXTRACT(QUX,QUX1))-32)_$EXTRACT(QUX,QUX1+1,999)
+2 SET QUD=";"_$PIECE(X,"^",3)_";"
if QUD'[(";"_QUX_"
GOTO VAR
SET QUX1=$EXTRACT(QUD,$FIND(QUD,QUX_":"),($FIND(QUD,";",$FIND(QUD,QUX_":"))-2))
if QUX1["
GOTO VAR
WRITE " ",QUX1
GOTO KILL
VAR FOR QUX1=2:1
SET QUD=$PIECE($PIECE($PIECE(X,"^",3),":",QUX1),";")
if QUD=""
QUIT
IF $PIECE(QUD,QUX)=""
WRITE $SELECT($PIECE(X,"^",2)=QUX:" "_QUX,1:"")_$PIECE(QUD,QUX,2,99)
SET QUX=$PIECE($PIECE($PIECE(X,"^",3),";",QUX1-1),":")
GOTO KILL
+1 FOR QUX1=1:1
SET QUD=$PIECE($PIECE(X,"^",4),",",QUX1)
if QUD=""
QUIT
IF $PIECE(QUD,QUX)=""
WRITE $SELECT($PIECE(X,"^",2)=QUX:" "_QUX,1:"")_$PIECE(QUD,QUX,2,99)
SET QUX=QUD
GOTO KILL
PAT IF $PIECE(X,"^",7)]""
IF @$PIECE(X,"^",7,999)
GOTO KILL
+1 WRITE *7," ???"
GOTO ENQ
KILL SET X=QUX
KILL QUX,QUX1,QUD
QUIT
ENC ;
+1 SET X=$PIECE($PIECE(";"_$PIECE(Y,"^",3),";"_X_":",2),";")
QUIT
ENYN SET $PIECE(X,"^",3)="1:YES;0:NO"
if $PIECE(X,"^",6)=""
SET $PIECE(X,"^",5,6)="YN^PRCTMES1"
GOTO ENQ