Cache still has %GCHANGE which will search globals.
----- Original Message -----
Sent: Tuesday, September 13, 2005 7:42
PM
Subject: Re: [Hardhats-members] Global
Search Tool
What a hoot! I was accidentally looking at archived HH
messages (from 2004) and I instinctively responded to this one... I
could have let it go and no one would have seen dates for the original post,
but it was just too funny to let it slip away into the hustle and bustle of
this list... ;-)
Greg Kreis wrote:
In VPE,
you can use the Global lister to search. It is not very intuitive
though. You first just list the global you want to search (ie. get a
page displayed), THEN you enter the C command to do a search with code
('code search').
You get a screen that tells you the variables you
can use to write a line of code to do the search. See the text
captured below.
The following variables are
available:
GLNAM =
"^DIC(4,1,0)" GL =
"^DIC" GLSUB =
"4,1,0" GLVAL = The data in node
^DIC(4,1,0) U =
"^"
Enter Mumps Code: Once you enter the
_expression_ and press return the listing starts again, using what you told it
earlier as the way to list it, and it applies your code to each node that it
encounters.
Greg Woodhouse wrote:
I don't have access to GTM (oe any kind of MUMPS system) right now, so
I don't know if there's a standard utility. But one option is simply to
use $QUERY:
S X="^MYGLOBAL"
W !
F S X=$Q(@X) Q:X="" D:(X[MYSTR!($G(@X)[MYSTR))
W !,X
W:$L($G(@X))>0 " = ",$G(@X)
(or something along those lines) ought to do it.
--- Bob Beckley <[EMAIL PROTECTED]> wrote:
Does anyone know of a way to search for string values within a
global?
Thanks in advance.
-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
Hardhats-members mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hardhats-members
=====
A practical man is a man who practices the errors of his forefathers. --Benjamin Disraeli
====
Greg Woodhouse
[EMAIL PROTECTED]
[EMAIL PROTECTED]
-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
Hardhats-members mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hardhats-members
--
Greg Kreis http://www.PioneerDataSys.com
"You are today where your thoughts have brought you, you will
be tomorrow where your thoughts take you." (James Lane Allen)
--
Greg Kreis http://www.PioneerDataSys.com
"You are today where your thoughts have brought you, you will
be tomorrow where your thoughts take you." (James Lane Allen)
|