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

DBTSTEST.m

Go to the documentation of this file.
  1. DBTSTEST ;routine to test the speed of the line and updates [ 05/07/1999 10:28 AM ]
  1. ;replicating the cpt file
  1. T ;
  1. S ZZ=""
  1. TEST(DBTSRET,ZZ) ;
  1. S DBTSRET(1)="-1"
  1. S LAST=$P($G(^DBTSTMP("TEST",0)),"^",1)
  1. S LAST=+LAST
  1. S ARR=0
  1. NEXT ;
  1. S LAST=$O(^ICPT(LAST))
  1. I +LAST=0 S DBTSRET(1)="-2" K ^DBTSTMP("TEST") Q
  1. I $E(LAST,1,2)="00" S DBTSRET(1)="-2" K ^DBTSTMP("TEST") Q
  1. S REC=$G(^ICPT(LAST,0))
  1. I REC="" S ^DBTSTEST(0)=LAST G NEXT
  1. S CODE=$P(REC,"^",1)
  1. S DESC=$P(REC,"^",2)
  1. S ARR=ARR+1
  1. S DBTSRET(ARR)=CODE_$C(9)_DESC
  1. S ^DBTSTMP("TEST",0)=LAST
  1. I ARR=200 Q
  1. G NEXT