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

IBCEPTU.m

Go to the documentation of this file.
  1. IBCEPTU ;ALB/TMK-TEST TRANSMIT CLAIMS UTILITIES ;25-JAN-2005
  1. ;;2.0;INTEGRATED BILLING;**296**;21-MAR-94
  1. ;
  1. PURGE ; Purge test claim transmit records over 60 days old
  1. N IBDAYS,IBDT,IBDELDT,DIK,DA,X
  1. S IBDAYS=60
  1. S X1=DT,X2=-IBDAYS D C^%DTC S IBDELDT=X
  1. S DIK="^IBM(361.4,"
  1. S IBDT=0 F S IBDT=$O(^IBM(361.4,"ALT",IBDT)) Q:'IBDT!(IBDT>IBDELDT) S DA=0 F S DA=$O(^IBM(361.4,"ALT",IBDT,DA)) Q:'DA D ^DIK
  1. Q
  1. ;
  1. LASTDT(DA) ; Get last txmt dt file 361.4 for xref
  1. ; DA = array of iens from Fileman
  1. N Z,Z0,X
  1. S X=""
  1. S Z="" F S Z=$O(^IBM(361.4,DA(1),1,"ALTD",Z),-1) Q:Z=""!X S Z0=0 F S Z0=$O(^IBM(361.4,DA(1),1,"ALTD",Z,Z0)) Q:'Z0 I Z0'=DA S X=Z Q
  1. Q X
  1. ;