| Register | FAQ | Calendar | Search | Today's Posts | Mark Forums Read |
|
#1
| |||
| |||
| I have a cache.dat contains 100s of globals, some of the globals contain some unprintable character. I want to sacn the cache.dat to findout the globals that contain certain unprintable character like ascii character 27 (ESC)? Is there any cache utility/command to do so??? |
|
#2
| |||
| |||
| Monty wrote: > I have a cache.dat contains 100s of globals, ... You posted a similar query in intersystems.public.cache. |
|
#3
| |||
| |||
| Denver wrote: > Monty wrote: > >> I have a cache.dat contains 100s of globals, ... > > You posted a similar query in intersystems.public.cache. How about: x Set name="" For Set name=$Order(^$Global(name)) Quit:name="" Do . Set ref=name For Set ref=$Query(@ref) Quit:ref="" Do . . Write:@ref?.e1C.e !,ref . . Quit . Quit Quit Of course, you can embellish this to your heart's delight. Best of luck, Ed de Moel -- ************************************************** ************ This electronic mail transmission contains confidential and/or privileged information intended only for the person(s) named. Any use, distribution, copying or disclosure by another person is strictly prohibited. ************************************************** ************ |
|
#4
| |||
| |||
| Monty wrote: > I have a cache.dat contains 100s of globals, some of the globals > contain some unprintable character. I want to sacn the cache.dat to > findout the globals that contain certain unprintable character like > ascii character 27 (ESC)? Is there any cache utility/command to do so??? Hey, I recently wrote a routine to search for something in particular, but not get bogged down going through huge globals that don't contain it before searching the globals that do. That is, assume that it is in a global that is not too big, but there are other, huge globals out there. It's not really what you want, apparently. Or would it help? I could post it, or make it a puzzle: what is the algorithm? (Note that "huge" etc. need not be defined.) C-B PS It works pretty well. I use it as the lazy approach for finding things. I found my Access Code in Vista and changed it to "A" that I wasn't allowed to use when entering it using Vista. |
|
#5
| |||
| |||
| to the best of my knowledge you will have to write a simple program get global name say global name is alpha scr<>s a="^alpha",b=a <>k tmp <>f s a=$q(@a) q:$l(a,1,$l(b))'=b s c=@a d chk(a,c) <>q chk(x,y)<> f i=1:1:$l(x) s z=$e(x,i) d ; <> . i $a(z)<34 s tmp(1,x,i)="" <> . i $a(z)>128 s tmp(1,x,i)="" <> . q <> f i=1:1:$l(y) s z=$e(y,i) d ; <>. i $a(z)<34 s tmp(2,x,i)="" <> . i $a(z)>128 s tmp(2,x,i)="" <> . q <>q this is real simple you can make it as complex as you like tmp(1 is the global reference with character position that is control tmp(2 is the global reference with character position of the data that is control "Monty" <mail2monty.g@gmail.com> wrote in message news:1163396112.483355.41800@h54g2000cwb.googlegro ups.com... >I have a cache.dat contains 100s of globals, some of the globals > contain some unprintable character. I want to sacn the cache.dat to > findout the globals that contain certain unprintable character like > ascii character 27 (ESC)? Is there any cache utility/command to do so??? > |
![]() |
| Thread Tools | |
| Display Modes | |
In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.