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

ATSCNT.m

Go to the documentation of this file.
ATSCNT ;TUCSON/DG;COUNT THE NUMBER OF ENTRIES IN A SEARCH TEMPLATE  [ 10/25/91  1:41 PM ]
 ;;2.5;SEARCH TEMPLATE COMPARISON;;OCT 25, 1991
 ;
 S U="^"
ASK S DIC("A")="Select a TEMPLATE: ",DIC="^DIBT(",DIC(0)="QAEZ",DIC("S")="I $D(^(1))" D ^DIC K DIC G:"^"[X X I Y<0 W !,"Try again" G ASK
 I Y<0 G X
 I $D(^DIBT(+Y,1,0)) S I=^(0)+1 W ! G DIS
EN ; - EP -
 S ATS=0 W !,"Counting",! F I=1:1 S ATS=$O(^DIBT(+Y,1,ATS)) Q:'ATS  W:'(I#100) $C(13),I
DIS W *7,$C(13),(I-1)_$S(I-1=1:" ENTRY",1:" ENTRIES")_" STORED IN THIS TEMPLATE"
X K ATS,I Q
 ;