How to findout globals in cache.dat that contain unprintable characters.

This is a discussion on How to findout globals in cache.dat that contain unprintable characters. within the mumps forums in Programming Languages category; 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???...

Go Back   Application Development Forum > Programming Languages > mumps

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 11-13-2006, 12:35 AM
Monty
Guest
 
Default How to findout globals in cache.dat that contain unprintable characters.

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???

Reply With Quote
  #2  
Old 11-13-2006, 07:46 AM
Denver
Guest
 
Default Re: search all globals

Monty wrote:
> I have a cache.dat contains 100s of globals, ...

You posted a similar query in intersystems.public.cache.
Reply With Quote
  #3  
Old 11-13-2006, 04:56 PM
Ed de Moel
Guest
 
Default Re: search all globals

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.
************************************************** ************
Reply With Quote
  #4  
Old 11-16-2006, 03:16 PM
Charlie-Boo
Guest
 
Default Re: How to findout globals in cache.dat that contain unprintable characters.

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.

Reply With Quote
  #5  
Old 12-14-2006, 10:09 PM
don
Guest
 
Default Re: How to findout globals in cache.dat that contain unprintable characters.

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???
>



Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 04:01 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.