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

IBYDPT.m

Go to the documentation of this file.
  1. IBYDPT ;ALB/TMP - PATCH IB*2*44 POST-INITIALIZATION ; 14-JUL-95
  1. ;;Version 2.0 ; INTEGRATED BILLING ;**44**; 21-MAR-94
  1. ;
  1. EN D APD3
  1. Q
  1. APD3 ; Sets up 'APD3' xref on field 10 of file 399 (AUTHORIZATION DATE)
  1. N CT,DA,X,H1,H2 S H1=$H
  1. I $D(^DGCR(399,"APD3")) W !!,"APD3 cross reference already exists - not rebuilt",!!,"Done.",! Q
  1. W !!,">>> Building the 'APD3' cross-reference for file #399 ..."
  1. W !," (I'll write a dot for every 500 entries processed)",!
  1. S (CT,DA)=0 F S DA=$O(^DGCR(399,DA)) Q:'DA S CT=CT+1,X=$E($P($G(^DGCR(399,DA,"S")),U,10),1,30) W:'(CT#500) "." I X'="" S ^DGCR(399,"APD3",X,DA)=""
  1. W !!,"Done."
  1. ;
  1. ;TEST SITES ONLY
  1. D S H2=$H
  1. W !!,"Count: ",CT
  1. W !,"Begin: ",$$HTE^XLFDT(H1)
  1. W !,"End: ",$$HTE^XLFDT(H2)
  1. W !!,CT," entries processed in ",$$HDIFF^XLFDT(H2,H1,3),"."
  1. Q