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

PRCPXALL.m

Go to the documentation of this file.
  1. PRCPXALL ;WISC/RFJ-purge all automatically by TaskManager ; 2/19/07 1:19pm
  1. ;;5.1;IFCAP;**98**;Oct 20, 2000;Build 37
  1. ;Per VHA Directive 2004-038, this routine should not be modified.
  1. Q
  1. ;
  1. ;
  1. DQ ; TaskManager comes here to start the automatic purge of
  1. ; inventory points.
  1. N %,%H,%I,INVPT,NOWDT,PRCP,PRCPZTSK,STOPDATE,TYPE,X,Y
  1. D NOW^%DTC S NOWDT=$E(X,1,5)_"01",X1=$E(X,1,5)_"15",X2=-395 D C^%DTC S (Y,STOPDATE)=$E(X,1,5)_"01"
  1. S PRCPZTSK=1
  1. S INVPT=0 F S INVPT=$O(^PRCP(445,INVPT)) Q:'INVPT I $P($G(^(INVPT,0)),"^",21)="Y" S TYPE=$P(^(0),"^",3) I TYPE'="" D
  1. . S PRCP("I")=INVPT
  1. . ; distribution history (file 446)
  1. . I TYPE'="S" D DQ^PRCPXDIS
  1. . ; receipts
  1. . D DQ^PRCPXREC
  1. . ; transaction register
  1. . D DQ^PRCPXTRA
  1. . ; usage/distribution totals
  1. . D DQ^PRCPXUSE
  1. . ; on-demand item audits (PRC*5.1*98)
  1. . I TYPE'="W" D DQ^PRCPXODI
  1. Q