utility

14 views
Skip to first unread message

Hotzoglou, Theokli

unread,
Sep 20, 2011, 2:07:40 PM9/20/11
to hard...@googlegroups.com

Hi,

I have been trying to find a utility, command to give me the size of a global. We have G.TM and I cannot find one, maybe the search criteria I used where not adequate, but can someone help?

 

Theokli Hotzoglou

Assistant Vice President, IT

Phone # 718-630-8107

Fax      # 718-210-5256

 

Sam Habiel

unread,
Sep 20, 2011, 2:28:35 PM9/20/11
to hard...@googlegroups.com
Chris Richardson wrote a little utility called %GSIZE and published it
on this list. Look for it.

Sam

> --
> http://groups.google.com/group/Hardhats
> To unsubscribe, send email to Hardhats+u...@googlegroups.com
>

Dave Gifford

unread,
Sep 20, 2011, 2:28:41 PM9/20/11
to hard...@googlegroups.com

D ^%GSZ

--

Hotzoglou, Theokli

unread,
Sep 20, 2011, 2:47:51 PM9/20/11
to hard...@googlegroups.com

Thank Dave, but when I try the command I get:

 

MSCL>D ^%GSZ

%GTM-E-ZLINKFILE, Error while zlinking "%GSZ"

%GTM-E-FILENOTFND, File %GSZ not found

 

Theokli Hotzoglou

Assistant Vice President, IT

Phone # 718-630-8107

Fax      # 718-210-5256

skip ormsby

unread,
Sep 20, 2011, 3:01:22 PM9/20/11
to hard...@googlegroups.com

Hotzoglou, Theokli

unread,
Sep 20, 2011, 3:29:20 PM9/20/11
to hard...@googlegroups.com

Thank you, I downloaded the code and I will try it.

 

Theokli Hotzoglou

Assistant Vice President, IT

Phone # 718-630-8107

Fax      # 718-210-5256

OldMster

unread,
Sep 21, 2011, 12:01:31 AM9/21/11
to hard...@googlegroups.com
for GT.M, you can use the mupip INTEG command to get global sizes.  Example:
@ZZTOP:~$ mupip INTEG -BR -SUB="^audit"
File or Region: /usr/sci/dat/MGR/mumps.dat
No errors detected by integ.

Type           Blocks         Records          % Used      Adjacent

Directory           2              69           1.574            NA
Index               1               1           0.074             0
Data                1              16           0.468             0
Total            1400              86              NA             0

Sam Habiel

unread,
Sep 22, 2011, 11:22:16 AM9/22/11
to hard...@googlegroups.com
Mark, or Bhaskar,

Can you explain how would I use the number of blocks to measure the
size of the global?

Let's look at this example:

Global variable ^XPD
Level Blocks Records % Used Adjacent
2 1 43 23.217 0
1 43 7664 87.082 0
0 7664 1230297 97.221 7353

The segment containing this global has a block size of 4096 (bytes?).
How would I convert the output above to bytes?

1) 4096*7664?
2) 4096*(7664+43+1)?

My DB has expanded eerily faster over the last 2 days, and I didn't
install any new patches; so I am rather interested in figuring out
what's going on...

Sam

Bhaskar, K.S

unread,
Sep 22, 2011, 12:08:07 PM9/22/11
to hard...@googlegroups.com


On 09/22/2011 11:22 AM, Sam Habiel wrote:
Mark, or Bhaskar,

Can you explain how would I use the number of blocks to measure the
size of the global?

Let's look at this example:

Global variable ^XPD
Level          Blocks         Records          % Used      Adjacent
    2               1              43          23.217             0
    1              43            7664          87.082             0
    0            7664         1230297          97.221          7353

The segment containing this global has a block size of 4096 (bytes?).
How would I convert the output above to bytes?

1) 4096*7664?
2) 4096*(7664+43+1)?
[KSB] The latter.

My DB has expanded eerily faster over the last 2 days, and I didn't
install any new patches; so I am rather interested in figuring out
what's going on...
[KSB] If it is journaled, MUPIP JOURNAL EXTRACT may also give you interesting information.

A common cause of an eerily expanding database is an error global.  The journal extract will tell you what's growing.

Regards
-- Bhaskar

Sam

On Tue, Sep 20, 2011 at 11:01 PM, OldMster <msi...@verizon.net> wrote:
for GT.M, you can use the mupip INTEG command to get global sizes.  Example:
@ZZTOP:~$ mupip INTEG -BR -SUB="^audit"
File or Region: /usr/sci/dat/MGR/mumps.dat
No errors detected by integ.
Type           Blocks         Records          % Used      Adjacent
Directory           2              69           1.574            NA
Index               1               1           0.074             0
Data                1              16           0.468             0
Total            1400              86              NA             0

--
http://groups.google.com/group/Hardhats
To unsubscribe, send email to Hardhats+u...@googlegroups.com


    

-- 
GT.M - Rock solid. Lightning fast. Secure. No compromises.
_____________

The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. Thank you.
_____________

Akshant

unread,
Sep 23, 2011, 1:16:40 AM9/23/11
to Hardhats
GSIZE.m file for GT.M will be available in public domain somewhere i
am not currently remember the path.

This need little dubugging and works.

Thanks
-Akshant

On Sep 22, 9:08 pm, "Bhaskar, K.S" <ks.bhas...@fisglobal.com> wrote:
> On 09/22/2011 11:22 AM, Sam Habiel wrote:Mark, or Bhaskar, Can you explain how would I use the number of blocks to measure the size of the global? Let's look at this example: Global variable ^XPD Level Blocks Records % Used Adjacent 2 1 43 23.217 0 1 43 7664 87.082 0 0 7664 1230297 97.221 7353 The segment containing this global has a block size of 4096 (bytes?). How would I convert the output above to bytes? 1) 4096*7664? 2) 4096*(7664+43+1)?[KSB] The latter.My DB has expanded eerily faster over the last 2 days, and I didn't install any new patches; so I am rather interested in figuring out what's going on...[KSB] If it is journaled, MUPIP JOURNAL EXTRACT may also give you interesting information.
> A common cause of an eerily expanding database is an error global.  The journal extract will tell you what's growing.
> Regards
> -- BhaskarSam On Tue, Sep 20, 2011 at 11:01 PM, OldMster<msi...@verizon.net>wrote:for GT.M, you can use the mupip INTEG command to get global sizes.  Example: @ZZTOP:~$ mupip INTEG -BR -SUB="^audit" File or Region: /usr/sci/dat/MGR/mumps.dat No errors detected by integ. Type           Blocks         Records          % Used      Adjacent Directory           2              69           1.574            NA Index               1               1           0.074             0 Data                1              16           0.468             0 Total            1400              86              NA             0 --http://groups.google.com/group/HardhatsTo unsubscribe, send email toHardhats+...@googlegroups.com-- GT.M - Rock solid. Lightning fast. Secure. No compromises._____________

David Whitten

unread,
Sep 23, 2011, 9:36:15 AM9/23/11
to hard...@googlegroups.com
If you have managed to debug the copy you have (what did you change?)
then if Chris Richardson wrote it, I'm rather sure it is GPL licensed and
would appreciate it if you would share your updates with the community.

You can share it as a RSA file or a KIDS file and attach it to an e-mail. 
I think it is on topic for Hardhats, and I'm sure someone in the community
will upload it to the TRAC server.

Dave

PS: I have started the wiki page
http://vistapedia.net/index.php?title=HOWTO_Share_VistA_Stuff

Phil Burkhalter

unread,
Sep 23, 2011, 9:44:49 AM9/23/11
to hard...@googlegroups.com

I haven’t changed anything. The current routine doesn’t print an image of the patient, only a barcode with their id number, name, allergies, date and ward. I want to add the image from the image they take for the patient id card in registration.

 

I will share what I come up with. I just re-looked at the Kernel manuals and it may be something that can be done when setting up the device call.

 

Phil Burkhalter

President

Business Intelligence Systems, LLC

520-907-1153

Philbur...@busintelonline.com

http://bis.busintelonline.com/

 

From: hard...@googlegroups.com [mailto:hard...@googlegroups.com] On Behalf Of David Whitten


Sent: Friday, September 23, 2011 8:36 AM
To: hard...@googlegroups.com

Nancy Anthracite

unread,
Sep 23, 2011, 5:18:48 PM9/23/11
to hard...@googlegroups.com, Phil Burkhalter
If you are using Linux, I wonder if you could make use of CUPS and the device
file.

This is from an OLD email that I wrote after getting help from Wally Fort that
sent me in the right direction to get what I needed to do done which was to
print a simple text file as I recall. Maybe you can extend that somehow to
print something more complex.

My (Nancy's) printer is HP1320OnNetGear lpd://192.168.0.109/PSC3F8E7 which
is the print queue assigned it because this is using a NetGear print server
and a URI of
ipp://localhost.localdomain:631/HP1320OnNetGear

In order to print a file from the command line, this works

lpr -P HP1320OnNetGear [FILE] works

This is the entries that work in my Device file and Termial Type file for my
setup on GTM/Linux with Debian Etch

elect KERNEL SYSTEM PARAMETERS DOMAIN NAME:


OUTPUT FROM WHAT FILE: KERNEL SYSTEM PARAMETERS// DEVICE
(52 entries)
Select DEVICE NAME: HP1320

NUMBER: 51 NAME: HP1320
$I: /tmp/HP1320 ASK DEVICE: NO
VOLUME SET(CPU): EHR SIGN-ON/SYSTEM DEVICE: NO
QUEUING: ALLOWED
LOCATION OF TERMINAL: Home HP1320 printer
OPEN COUNT: 14 PAGE LENGTH: 60
OPEN PARAMETERS: (NEWVERSION:NOREADONLY:VARIABLE)
MNEMONIC: HP1320
PRE-OPEN EXECUTE: S IO=$$UNIQUE^%ZISUTL(IO)
SUBTYPE: P-HP1320TXT TYPE: HOST FILE SERVER
PRINT SERVER NAME OR ADDRESS: HP1320OnNetGear
REMOTE PRINTER NAME: HP1320OnNetGear ASK DEVICE TYPE AT SIGN-ON: YES, ASK


OUTPUT FROM WHAT FILE: DEVICE// TERMINAL TYPE (191 entries)
Select TERMINAL TYPE NAME: P-HP1320TXT
ANOTHER ONE:
STANDARD CAPTIONED OUTPUT? Yes// (Yes)
Include COMPUTED fields: (N/Y/R/B): NO// BOTH Computed Fields and Record
Number
(IEN)

NUMBER: 199 NAME: P-HP1320TXT
RIGHT MARGIN: 80 FORM FEED: #
PAGE LENGTH: 60 OPEN EXECUTE: W $C(27),"E"
CLOSE EXECUTE: U IO W @IOF K IO(1,10) S IO=$ZIO C IO S QUE="ZSYSTEM ""lpr -
rl -P H
P1320OnNetGear "_IO_$C(34) X QUE
OPEN EXECUTE DESCRIPTION: RESET

Select TERMINAL TYPE NAME:


From peoples old emails - Wally's did the trick for me.


On Friday, September 23, 2011, Phil Burkhalter wrote:
> I haven't changed anything. The current routine doesn't print an image of
> the patient, only a barcode with their id number, name, allergies, date and
> ward. I want to add the image from the image they take for the patient id
> card in registration.
>
>
>
> I will share what I come up with. I just re-looked at the Kernel manuals
> and it may be something that can be done when setting up the device call.
>
>
>
> Phil Burkhalter
>
> President
>
> Business Intelligence Systems, LLC
>
> 520-907-1153
>

> <mailto:Philbur...@busintelonline.com>

> <mailto:Hardhats%2Bunsu...@googlegroups.com>


--
Nancy Anthracite

Reply all
Reply to author
Forward
0 new messages