source: FOIAVistA/trunk/r/VA_FILEMAN-ARJT-DI-DD-DM-DT-%DT-%RCR/DIAXP.m@ 677

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

initial load of FOIAVistA 6/30/08 version

File size: 1.2 KB
Line 
1DIAXP ;SFISC/DCM-EXCEPTION REPORT ;5/16/96 10:56
2 ;;22.0;VA FileMan;;Mar 30, 1999
3 ;Per VHA Directive 10-93-142, this routine should not be modified.
4EN ;
5 N PAGE,LINE,DIAXX,FILE,FNAME,Y,DATE,DIRUT,Z
6 S PAGE=0,LINE="",DIAXX=^DIAR(1.11,DIARC,0),FILE=$P(DIAXX,U,2),FNAME=$P($G(^DIC(FILE,0)),U)
7 S Y=DT X ^DD("DD") S DATE=Y
8 D HDR,BODY,END
9 Q
10 ;
11C I IOST["C-" N DIR S DIR(0)="E" D ^DIR Q:$D(DIRUT)
12 ;
13HDR W:$Y @IOF W !,"EXTRACT ACTIVITY EXCEPTION REPORT",?IOM-24,DATE,?IOM-10,"PAGE: ",PAGE+1
14 S PAGE=PAGE+1,$P(LINE,"-",IOM)="" W !,LINE
15 Q
16 ;
17BODY W !!,"EXTRACT ACTIVITY: ",DIARC,?31,"ARCHIVER: ",$P($G(^VA(200,$P(DIAXX,U,6),0)),U)
18 W !!,"THE FOLLOWING RECORDS IN THE '"_FNAME_"' FILE WERE NOT PROCESSED BY THE",!,"EXTRACT TOOL"
19 N REC,LINE,ERR S REC=0 D REC Q:$D(DIRUT)
20 W !!,"*** PLEASE KEEP THIS FOR FUTURE REFERENCE ***"
21 Q
22REC S LINE="Entry # "
23 S REC=$O(^TMP("DIAXU",$J,"RESULT","ERR",FILE,REC)) Q:'REC S ERR=^(REC)
24 S LINE=LINE_+REC_" was NOT processed because:"
25 D C:($Y+3>IOSL) Q:$D(DIRUT)
26 W !!,LINE N A,B S A=1 D ERR
27 G REC
28ERR S B=$P(ERR,";",A) Q:B="" S A=A+1
29 N Z S Z=0
30 F S Z=$O(^TMP("DIERR",$J,+B,"TEXT",Z)) Q:'Z D C:($Y+1>IOSL) Q:$D(DIRUT) W !?2,$G(^(Z))
31 G ERR
32 ;
33END I $E(IOST)'="C",$Y W @IOF
34 D ^%ZISC
35 K ^TMP("DIAXU",$J),^TMP("DIERR",$J)
36 Q
Note: See TracBrowser for help on using the repository browser.