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

ATSERCHG.m

Go to the documentation of this file.
ATSERCHG ;TUCSON/DG;PIECES OF ATSERCH4  [ 10/25/91  1:39 PM ]
 ;;2.5;SEARCH TEMPLATE COMPARISON;;OCT 25, 1991
WRITE ; - EP -
 W !!,"There ",$S(ATSEARCH("MERGE COUNT")=1:"was ",1:"were "),ATSEARCH("MERGE COUNT"),$S(ATSEARCH("MERGE COUNT")=1:" match ",1:" matches "),"("
 W $S(ATSEARCH(1,"SRCHNAM")'=ATSEARCH(2,"SRCHNAM"):ATSEARCH(1,"SRCHNAM")_" and "_ATSEARCH(2,"SRCHNAM"),1:ATSEARCH(1,"SRCHNAM")),")"
 Q
 ;
CHKMTCH ; - EP - IF MATCHES=0 AND > FIRST TIME THRU, SET ^("MERGED",4) TO ^("MERGED",3)
 I ATSEARCH("MERGE COUNT")=0,ATSLOOP>1
 E  K ^UTILITY("ATSEARCH",$J,"TMP") Q
 S ATSTMPN=0 F ATSL=0:0 S ATSTMPN=$O(^UTILITY("ATSEARCH",$J,"TMP",ATSTMPN)) Q:ATSTMPN'=+ATSTMPN  S ^UTILITY("ATSEARCH",$J,"MERGED",3,ATSTMPN)=""
 Q
 ;