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

ASURD02P.m

Go to the documentation of this file.
  1. ASURD02P ; IHS/ITSC/LMH -RPT 2 -YEARLY PURGE TRANS LIST ;
  1. ;;4.2T2;Supply Accounting Mgmt. System;;JUN 30, 2000
  1. ;This routine formats and prints statistics concerning the Yearly
  1. ;closeout transaction purge proceedure. All transactions more than 3
  1. ;years old will be purged during a yearly closeout.
  1. EN ;EP;PRIMARY ENTRY POINT FOR REPORT 02
  1. I '$D(IO) D HOME^%ZIS
  1. I '$D(DUZ(2)) W !,"Report must be run from Kernel option" Q
  1. I '$D(ASUL(1,"AR","AP")) D SETAREA^ASULARST
  1. S ASUK("PTRSEL")=$G(ASUK("PTRSEL")) I ASUK("PTRSEL")]"" G PSER
  1. S ZTRTN="PSER^ASURD02P",ZTDESC="SAMS RPT 02" D O^ASUUZIS
  1. I POP S IOP=$I D ^%ZIS Q
  1. I ASUK(ASUK("PTR"),"Q") Q
  1. PSER ;EP;FOR TASKMAN QUEUE OF PRINT
  1. I ($D(ASUK("DT"))#10)'=1 D DATE^ASUUDATE
  1. D U^ASUUZIS
  1. W @ASUK(ASUK("PTR"),"IOF")
  1. W !,"REPORT #2 -YEARLY FILE UPDATE",?50,ASUK("DT"),?70,"PAGE : 1",!!!
  1. F S ASUX=$O(^XTMP("ASUR","R02",$G(ASUX))) Q:ASUX="" S ASURX=^XTMP("ASUR","R02",ASUX) X ASURX
  1. K ASUX
  1. D PAZ^ASUURHDR W @(IOF)
  1. Q:ASUK("PTRSEL")']""
  1. ;D C^ASUUZIS
  1. Q