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

BNIGVLP2.m

Go to the documentation of this file.
BNIGVLP2 ; IHS/CMI/LAB - print bni report ;
 ;;1.0;BNI CPHD ACTIVITY DATASYSTEM;;DEC 20, 2006
 ;
DONE ;EP
 I $D(ZTQUEUED),BNIGCTYP="F" G DONE1
 D DONE^BNIGVLU
DONE1 ;
 K ^XTMP("BNIGVL",BNIGJOB,BNIGBT),^XTMP("BNIGFLAT",$J)
 D DEL^BNIGVL
 K BNIGBD,BNIGSD,BNIGED,BNIGEDD,BNIGBDD,BNIGRPT,BNIGHEAD,BNIGLINE,BNIGL,BNIGRCNT,BNIGI,BNIGCRIT,BNIGVIEN,BNIGVREC,BNIGJOB,BNIGBT,BNIGBTH,BNIGQUIT,BNIGHDR,BNIGDASH,BNIGLENG,BNIGPCNT,BNIGTCW,BNIGODAT,BNIGPG,AUPNDAYS,AUPNPAT,AUPNDOD,AUPNDOB,AUPNSEX
 K BNIGSORT,BNIGSRT,BNIGSORX,BNIGFILE,BNIGFIEL,BNIGPRNT,BNIGX,BNIGTYPE,BNIGFOUN,D0,J,K,L,BNIGPRNM,BNIGTEST,BNIGSEAT,BNIGLHDR,BNIGFRST
 Q
 I 'BNIGPG G HEAD1
 I $E(IOST)="C",IO=IO(0) W ! S DIR(0)="EO" D ^DIR K DIR I Y=0!(Y="^")!($D(DTOUT)) S BNIGQUIT="" Q
HEAD1 ;EP
 I BNIGCTYP="F",$D(ZTQUEUED) Q
 W:$D(IOF) @IOF S BNIGPG=BNIGPG+1
 I $G(BNIGUI) W "ZZZZZZZ",!
 I $G(BNIGTITL)="",BNIGCTYP'="S" S BNIGTEXT="CPHAD RECORD LISTING",BNIGLENG=$L(BNIGTEXT) W !?((BNIGTCW-BNIGLENG)/2),BNIGTEXT,?(BNIGTCW-8),"Page ",BNIGPG
 I $G(BNIGTITL)]"" S BNIGLENG=$L(BNIGTITL) W !?((BNIGTCW-BNIGLENG)/2),BNIGTITL,?(BNIGTCW-8),"Page ",BNIGPG
 S X="Date Range:  "_BNIGBDD_" and "_BNIGEDD W $$CTR^BNIGVL(X,$S(BNIGTCW:BNIGTCW,1:80)),!
 I BNIGCTYP="S" S BNIGLENG=$L(BNIGSORV)+23 W !?((BNIGTCW-BNIGLENG)/2),"CPHAD Activity Record SUB-TOTALS BY:  ",BNIGSORV,!
 I $G(BNIGSPAG) S BNIGLENG=$L(BNIGSORV)+$L(BNIGSRTR)+2 S:BNIGTCW<BNIGLENG BNIGLENG=BNIGTCW W !?((BNIGTCW-BNIGLENG)/2),BNIGSORV,":  ",BNIGSRTR,!
 I BNIGHEAD]"" W !,BNIGHEAD,!
 W BNIGDASH,!
 I BNIGCTYP="S" W !,BNIGSORV,":"
 I BNIGCTYP="F",$E(IOST)="C" W !!,"Flat file being created, hold on...",!
 Q