1 | AAQJP132 ;FGO/JHS - List Patch Record (132 col.) ;10-07-97 [5/25/99 10:22pm]
|
---|
2 | ;;1.4;AAQJ PATCH RECORD;; May 14, 1999
|
---|
3 | W !!,"A 132 column printer should be used for this report.",!
|
---|
4 | S U="^",DIC="^DIZ(437016,",DIC(0)="AEQM"
|
---|
5 | D ^DIC W ! S AAQJDA=+Y,AAQJPKG=$P(Y,U,2) G:Y=-1 EXIT
|
---|
6 | ASKSRT R !,"Sort by (P)atch Number or (S)equence Number?: P// ",AAQSRT:60 G:AAQSRT="^" EXIT W:$E(AAQSRT,1)="P" "atch Number" W:$E(AAQSRT,1)="S" "equence Number"
|
---|
7 | I (AAQSRT="")!(AAQSRT="P") S AAQSRT="P" S AAQSHDR="Sorted by PATCH #" G ASKROU
|
---|
8 | I AAQSRT?1L.E S AAQSRT=$$UP^XLFSTR(AAQSRT)
|
---|
9 | I $E(AAQSRT,1)'="P",$E(AAQSRT,1)'="S" W !!,"Enter uppercase P or S, `^' to quit." G ASKSRT
|
---|
10 | S AAQSHDR="Sorted by SEQ #"
|
---|
11 | ASKROU S %=2 W !,"Do you want the Routine field on the list" D YN^DICN S AAQROU=% I %=0 W !!,"Enter uppercase Y or N, `^' at DEVICE: to quit." G ASKROU
|
---|
12 | S DIC="^DIZ(437016,"
|
---|
13 | S FLDS="[AAQJ LIST 132]",DHD="[AAQJ LIST 132 HEADING]"
|
---|
14 | S:AAQROU=1 FLDS="[AAQJ LIST 132 ROU]",DHD="[AAQJ LIST 132 ROU HDG]"
|
---|
15 | I AAQSRT="P" S BY="[AAQJ PKG/VERS/PATCH]" G FRTO
|
---|
16 | S BY="[AAQJ PKG/VERS/SEQ]"
|
---|
17 | FRTO S (FR,TO)=AAQJPKG D EN1^DIP
|
---|
18 | EXIT K %,%Y,AAQJDA,AAQJPKG,AAQROU,AAQSHDR,AAQSRT,POP Q
|
---|
19 | ;All other input variables killed by EN1^DIP
|
---|