Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: ACDWRP25

ACDWRP25.m

Go to the documentation of this file.
ACDWRP25 ;IHS/ADC/EDE/KML - OUTPUT GENERATOR;
 ;;4.1;CHEMICAL DEPENDENCY MIS;;MAY 11, 1998
 ;Reports 301,302
 I '$D(^TMP("ACD",ACDJOB,ACDBT,ACDTGSUB,"VAL")) D ^ACDWK Q
 S (ACDVCNT,ACDNCNT)=0
P1 ;
 D C
 S ACDP1=""
 F  D F Q:$D(DIRUT)  S ACDP1=$O(^TMP("ACD",ACDJOB,ACDBT,ACDTGSUB,"VAL",ACDP1)) Q:ACDP1=""  D  Q:$D(DIRUT)
 . W !,$E(ACDP1,1,22)
 . S ACDP2=""
 . F  D F Q:$D(DIRUT)  S ACDP2=$O(^TMP("ACD",ACDJOB,ACDBT,ACDTGSUB,"VAL",ACDP1,ACDP2)) Q:ACDP2=""  S ACDN0=^(ACDP2) D P2 Q:$D(DIRUT)
 W:'$D(DIRUT) !?49,"=====",?60,"=====",!?49,ACDNCNT,?60,ACDVCNT
 D ^ACDWK
 Q
P2 ;
 S ACDVIS=$P(ACDN0,U),ACDNUMR=$P(ACDN0,U,2)
 W ?24,$E(ACDP2,1,22),?49,ACDNUMR,?60,ACDVIS,?72,$J(ACDNUMR/ACDVIS,7,2),!
 S ACDNCNT=ACDNCNT+ACDNUMR,ACDVCNT=ACDVCNT+ACDVIS
 Q
F ;Form feed
 I $Y+4>IOSL D F^ACDWUTL D:'$D(DIRUT) C
 Q
C ;Column
 W !,ACDC(1),?24,ACDC(2),?49,ACDC(3),?60,ACDC(4),?71,ACDC(5),!,ACDH(1),!
 Q