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

ZTGS.m

Go to the documentation of this file.
ZTGS ;SF/RWF - GLOBAL SEARCH ;12/6/89  14:01 ; [ 04/02/2003   8:29 AM ]
 ;;8.0;KERNEL;1002,1003,1004,1005,1005,1007**;APR 1, 2003
 ;;7.3;TOOLKIT;;Apr 25, 1995
 S:'$D(DTIME) DTIME=600
A W !,"GLOBAL SEARCH",!,"Global reference: " R GREF:DTIME G QUIT:(GREF="^")!(GREF="")
 S:$E(GREF)'="^" GREF="^"_GREF S:GREF'["(" GREF=GREF_"("
 S GBL=GREF S:$E(GBL,$L(GBL))="," GBL=$E(GBL,1,$L(GBL)-1) S:$E(GBL,$L(GBL))'=")" GBL=GBL_")" S:$E(GREF,$L(GREF))=")" GREF=$E(GREF,1,$L(GREF)-1)
 S:GBL["()" GBL=$P(GBL,"()",1)_"(-9)" S GBLSTART=GBL
 I $Q(@GBL)="" W !,"Non-existing global." G A
B R !,"Search for: ",VAL:DTIME,! G QUIT:VAL="^",A:VAL="" S GBL=GBLSTART
 ;I '$D(@GBL) S X=$O(@GBL),GBL=$ZR
 I $D(@GBL)#2,@GBL[VAL W !,GBL,"=",@GBL,!
 F I=1:1 S GBL=$Q(@GBL) Q:GBL'[GREF  W:I#25=0 "." I @GBL[VAL W !,GBL,"=",@GBL,!
 G B
QUIT K GBL,GREF,VAL Q