list file size

3 views
Skip to first unread message

Cedric Fontaine

unread,
Dec 10, 2009, 10:32:54 AM12/10/09
to OpenQM
Hello,

Is there any way to list item size ? On D3, we can do LIST myfile
SIZE.

Is there an option to do this on QM ?

Thanks,
Cedric Fontaine

eppick77

unread,
Dec 10, 2009, 11:17:24 AM12/10/09
to OpenQM
Cedric,

Make sure that there is a size item in either dict or the md(voc).

:ED MD SIZE
MD SIZE
10 line(s)
----: P
0001: A
0002: 9999
0003: SIZE
0004:
0005:
0006:
0007:
0008:
0009: R
0010: 13
Bottom at line 10
----:

You can list the size just the same way that you do on D3.

Eugene

Martin Phillips

unread,
Dec 10, 2009, 11:38:23 AM12/10/09
to ope...@googlegroups.com
Hi Eugene/Cedric,

Although this suggestion works for compatibility with Pick systems, I
personally prefer an I-type...
1: I
2: LEN(@RECORD)
as this doesn't rely on some special interpretation of a field number of
9999 and is, therefore, readable by programmers who have not come from a
Pick background.


Martin Phillips
Ladybridge Systems Ltd
17b Coldstream Lane, Hardingstone, Northampton, NN4 6DB
+44-(0)1604-709200

CDMI - Steve T

unread,
Dec 10, 2009, 3:36:30 PM12/10/09
to ope...@googlegroups.com
quick question sir
will len(@record) be equal to:
len(id) + len(record) ???
 
Steve Trimble
Computerized Data Mgmt Inc
PO Box 13403
Maumelle, AR 72113
(501) 803-0974 09:00am - 6:00pm CST
 
Home of self defense products: http://www.protecturself.com



From: Martin Phillips <martinp...@ladybridge.com>
To: ope...@googlegroups.com
Sent: Thu, December 10, 2009 10:38:23 AM

Cedric Fontaine

unread,
Dec 10, 2009, 3:48:20 PM12/10/09
to OpenQM
Thanks a lot.

On 10 déc, 11:38, "Martin Phillips" <martinphill...@ladybridge.com>
wrote:

Ashley Chapman

unread,
Dec 10, 2009, 4:07:53 PM12/10/09
to ope...@googlegroups.com
2009/12/10 CDMI - Steve T <cd...@swbell.net>:
> quick question sir
> will len(@record) be equal to:
> len(id) + len(record) ???

Nope. @record is the length of the record, EXCLUDING the key.
--
Ashley Chapman

Martin Phillips

unread,
Dec 10, 2009, 4:22:59 PM12/10/09
to ope...@googlegroups.com
Hi Steve,
 
will len(@record) be equal to:
len(id) + len(record) ???
No. The id is not part of the record.
 
 
Martin
Reply all
Reply to author
Forward
0 new messages