source: FOIAVistA/trunk/r/ENGINEERING-EN/ENCTQUES.m@ 1742

Last change on this file since 1742 was 628, checked in by George Lilly, 15 years ago

initial load of FOIAVistA 6/30/08 version

File size: 1.1 KB
Line 
1ENCTQUES ;(WASH ISC)/RGY-Misc Bar Code Utilities ;11-2-89
2 ;;7.0;ENGINEERING;;Aug 17, 1993
3 ;Copy of PRCTQUES ;DH-WASH ISC
4ENQ 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
5 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)
6 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
7VAR 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
8 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
9PAT I $P(X,"^",7)]"",@$P(X,"^",7,999) G KILL
10 W *7," ???" G ENQ
11KILL S X=QUX K QUX,QUX1,QUD Q
12ENC ;
13 S X=$P($P(";"_$P(Y,"^",3),";"_X_":",2),";") Q
14ENYN S $P(X,"^",3)="1:YES;0:NO" S:$P(X,"^",6)="" $P(X,"^",5,6)="YN^ENCTMES1" G ENQ
Note: See TracBrowser for help on using the repository browser.