ASUWMVHS ; IHS/ITSC/LMH - RE-EXTRACT AND DATA ENTRY ONLY ;
;;4.2T2;Supply Accounting Mgmt. System;;JUN 30, 2000
;This routine will move history transactions to separate files for extract
N X,Y F X=0:1:10 D
.S Y=0
.F S Y=$O(^ASUH("AT",X,Y)) Q:Y'?1N.N D
..Q:$P($G(^ASUH(Y,0)),U,10)'="U"
..S Z=$S(X=8:2,X=9:3,X=0:7,X=10:7,1:X)
..M ^TMP("ASUW",$J,Z,Y)=^ASUH(Y)
Q
ASUWMVHS ; IHS/ITSC/LMH - RE-EXTRACT AND DATA ENTRY ONLY ;
+1 ;;4.2T2;Supply Accounting Mgmt. System;;JUN 30, 2000
+2 ;This routine will move history transactions to separate files for extract
+3 NEW X,Y
FOR X=0:1:10
Begin DoDot:1
+4 SET Y=0
+5 FOR
SET Y=$ORDER(^ASUH("AT",X,Y))
IF Y'?1N.N
QUIT
Begin DoDot:2
+6 IF $PIECE($GET(^ASUH(Y,0)),U,10)'="U"
QUIT
+7 SET Z=$SELECT(X=8:2,X=9:3,X=0:7,X=10:7,1:X)
+8 MERGE ^TMP("ASUW",$JOB,Z,Y)=^ASUH(Y)
End DoDot:2
End DoDot:1
+9 QUIT