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

PRCHRPT2.m

Go to the documentation of this file.
PRCHRPT2 ;SF/TKW-PRINT 1988 FPDS REPORTS ; 6/17/97 9:30 AM
V ;;5.1;IFCAP;;Oct 20, 2000
 ;Per VHA Directive 10-93-142, this routine should not be modified.
 ;****NOTE: ALL OPTIONS EXCEPT EN5 ARE NO LONGER IN USE. ****
 ;
EN1 Q  S PRCHRPT=1,PRCHH1="FPDS LESS THAN 10K" G RANGE
 ;
EN2 Q  S PRCHRPT=2,PRCHH1="FPDS GREATER THAN 10K" G RANGE
 ;
EN3 Q  S PRCHRPT=3,PRCHH1="FPDS BY CONTRACT NO." G RANGE
 ;
EN4 Q  S PRCHRPT=4,PRCHH1="FPDS LINE-ITEM COUNT" G RANGE
 ;
EN5 S PRCHRPT=5,PRCHH1="FUND CONTROL POINT" S PRCF("X")="SP" D ^PRCFSITE G RANGE
 ;
RANGE Q:'$D(PRC("SITE"))  W !!!,"PRINT REPORT OF "_PRCHH1
 S M="P.O.DATE",PRCHD="DATE" D RNG^PRCHRPT1 G:(FR["^")!(TO["^") EXIT I (FR["?")!(TO["?") D DSP G RANGE
 ;
RANG2 K PRCHD I PRCHRPT=5 S PRCHSFR=FR,PRCHSTO=TO,M="FUND CONTROL POINT" D RNG^PRCHRPT1 G:(FR["^")!(TO["^") EXIT I (FR["?")!(TO["?") D DSP2 G RANG2
 I PRCHRPT=5 S PRCHFR=FR,PRCHTO=TO,FR=PRCHSFR,TO=PRCHSTO K PRCHSFR,PRCHSTO
 S ZTRTN="ENP^PRCHRPT2" D SDEV^PRCHRPT1 G:POP EXIT G:'$D(IO(0)) EXIT G:IO(0)=IO EXIT
 S M="print this report" D PDT^PRCHRPT1 G:X["^" EXIT
 S ZTDTH=PRCHPDAT,ZTDESC="Print "_PRCHH1
 K ZTSAVE S ZTSAVE("U")="",ZTSAVE("PRCHRPT")="",ZTSAVE("FR")="",ZTSAVE("TO")="",ZTSAVE("PRCHH1")="",ZTSAVE("PRC(""SITE"")")=""
 I PRCHRPT=5 S ZTSAVE("PRCHFR")="",ZTSAVE("PRCHTO")=""
 D ^%ZTLOAD K ZTRTN,ZTUCI,ZTDTH,ZTSAVE,ZTDESC,ZTSK,ZTSKT G EXIT
 ;
DSP W !! W:FR["?" "TO SORT IN SEQUENCE , STARTING FROM A CERTAIN "_M_"," W:TO["?" "TO SORT ONLY UP TO A CERTAIN "_M_","
 W !,"TYPE THAT "_M,!,"'@' MEANS 'INCLUDE NULL "_M_" FIELDS'" Q
 ;
DSP2 S DIC="^PRC(420,"_PRC("SITE")_",1,",DA(1)=PRC("SITE"),DIC(0)="QEMNZ",X="?" D ^DIC Q
 ;
ENP ; ENTRY POINT FOR PRINTING FPDS REPORTS
 D NOW^%DTC S Y=% D DD^%DT K ^TMP($J) S PRCHPDAT=Y
 S PRCHPFR="FIRST DATE",PRCHPTO="LAST DATE" I +FR=FR S Y=FR D DD^%DT S PRCHPFR=Y
 I +TO=TO S Y=TO D DD^%DT S PRCHPTO=Y
 S PRCHPOR=0 D RD^PRCHRPT4,EN^PRCHRPT3
 W $C(13) D:$D(ZTSK) KILL^%ZTLOAD K ZTSK,ZTSKT
 G EXIT
 ;
EXIT K %,%DT,%H,%ZIS,IO("Q"),IOP,I,J,K,M,N,DA,DIC,X,Y,ZTRTN,FR,TO,^TMP($J),PRCHH1,PRCHRPT,PRCHPFR,PRCHPTO
 K PRCHAMT,PRCHBOU2,PRCHBOUT,PRCHCON,PRCHDY,PRCHET,PRCHFR,PRCHH1,PRCHKEY,PRCHPAGE,PRCHFR
 K PRCHPONO,PRCHPOR,PRCHTO,PRCHRFLG,PRCHRPT,PRCHSFR,PRCHSPN,PRCHSTO,PRCHTO,PRCHTOT,PRCHTOTA,PRCHTOTL,PRCHTYP,PRCHTYPP,PRCHX,PRCHD,PRCHPDAT,PRCHPOD
 Q