source: WorldVistAEHR/trunk/r/LIBRARY-LBR-LBRS/LBRYRET0.m@ 1806

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

initial load of WorldVistAEHR

File size: 1.7 KB
RevLine 
[613]1LBRYRET0 ;ISC2/DJM-RETURN FROM ROUTING OUTPUT MSG ;[ 05/23/97 12:13 PM ]
2 ;;2.5;Library;**2**;Mar 11, 1996
3START F I=1:1:7 S LS(I)=""
4 S XT1=$S($D(^LBRY(680,LBRYLOC,16,0)):1,1:0)
5 S XT2=$S($D(A(E0-1)):1,1:0),XT3=$S($D(A(E1+1)):1,1:0)
6 S XT4=$S($D(A(1)):1,1:0),LS(1)="Choose: "
7 S:XT4 LS(2)=$C(34)_"ID NUM"_$C(34)_" to return from routing"
8 S:XT1 LS(5)="see check-in (N)otes" S:XT2 LS(6)="(B)ackup" S:XT3 LS(7)="(F)orward"
9 S (LINE1,LINE2)="" F I=1:1:7 Q:$L(LINE1)+$L(LS(I))'<78 S:LS(I)]"" LINE1=LINE1_LS(I) K LS(I) I I>1&($D(LS(I+1))) S:LS(I+1)]"" LINE1=LINE1_", "
10 I '$D(LS(7)) S LINE1=LINE1_"." G PRINT
11 F J=I:1:7 S:LS(J)]"" LINE2=LINE2_LS(J) K LS(J) I J<7&($D(LS(J+1))) S:LS(J+1)]"" LINE2=LINE2_", "
12 S LINE2=LINE2_"."
13PRINT W !!,LINE1,! W:$D(LINE2) LINE2,! W "Exit// "
14EXIT K LINE1,LINE2,I,J
15 Q
16 ;LIBRARY SERIALS WHAT-TO-DO PROMPT (FROM LBRYRET)
17ASK3 S DTOUT=0 R X:DTIME E W $C(7) S DTOUT=1 G ^LBRYRET
18 I X="" G ^LBRYRET
19 I X=" " S:$D(^TMP("LBRY",DUZ,6)) X=^(6)
20 I X="??" S XQH="LBRY SERIALS RETURN" D EN^XQH G DISPLAY^LBRYRET
21 I X="^" G ^LBRYRET
22 I $D(A(E0-1)),"Bb"[$E(X,1) D BACKUP^LBRYCK0 G DISPLAY^LBRYRET
23 I $D(A(E1+1)),"Ff"[$E(X,1) D FORWARD^LBRYCK0 G DISPLAY^LBRYRET
24 I $D(^LBRY(680,LBRYLOC,16,0)),"Nn"[X D UTIL,^LBRYRET2 G DISPLAY^LBRYRET
25ASK2 I $D(A(X)) D UTIL G ^LBRYRET1
26WRONG S E=0,XTA="",XTB="",XTC="",XTD="",XTE="" S:$D(A(1)) XTA="a number under heading "_$C(34)_"ID NUM"_$C(34)
27 S XTC=$S(XT1&((XT2)!(XT3)):", N",1:""),XTD=$S(XT2&(XT3):", B or F.",XT2!(XT3):" or ",1:".") G:XTD["." WRONG1
28 S XTE=$S(XT2:"B.",XT3:"F.",1:"")
29WRONG1 W !!,"Enter "_XTA_XTB_XTC_XTD_XTE,!,"Enter '??' for more help."
30 W !!,"Choose: Exit// " D MORE^LBRYRET
31 G ASK3
32UTIL K ^TMP("LBRY",DUZ,6) S ^(6)=X
33 Q
Note: See TracBrowser for help on using the repository browser.