Hi Dave,

On version 3.4.7 I get:

jrf -R CONTROL
CONTROL Type J4, 28 records at size 2957, Downsizing skipped from modulo 101 to 31.

jrf -Rv CONTROL
CONTROL Type J4, 28 records at size 2957, Downsizing skipped from modulo 101 to 31.
File skipped
-------------------------------------------------------------------------------

===============================================================================

*A9999 doesn't take into account the ID length or overhead. I use an MD I-descriptor so it can be used with any file. An MD I-descriptor can be made functional by creating it in DICT MD, ICOMPing it, then copying it to the DATA portion of MD.

MD SIZE
001: I Size of item, ID and overhead in bytes
002: LEN(@ID) + LEN(@RECORD) + 18
003: MD0,
004:             }Bytes       }************
005: 12R
006: S
007:

Regards,
Charlie Noah

Tiny Bear's Wild Bird Store
"Everything For The Backyard Bird Enthusiast, Except For The Birds"
Info, Forum:  http://www.TinyBearMarketing.com
Store:            http://Stores.TinyBearMarketing.com
Toll Free:       1-855-TinyBear (855-846-9232)


On 05-25-2012 12:57 PM, David Grenfell wrote:
Thank-you Simon.   I just checked my  file, and from just eye-balling it, I figure about 250 bytes per item, so I can lower my size by about 75%.
 
I tried the "jrf FILENAME -R" but didn't get any report.  Using vers. 4.3.10 on xp-pro  I was in the folder where the file exists.
 
Dave.
 

Date: Fri, 25 May 2012 17:51:27 +0100
From: [email protected]
To: [email protected]
Subject: Re: jbase question or two

See inline below

On 25/05/2012 17:42, David Grenfell wrote:
Good Day to you all:
 
I am about to set up a new account and have a couple of questions regarding file sizing.
 
1/  Is there a dict item I can use to see the size of my items in a file ?  For example.... "LIST FILENAME size"  which would show me the item ID and the size of the item.
 
LIST FILENAME *A9999     will work.
2/Once I have a look at the items sizes, I assume I can do the following to create a file with the approximate size.
 
For now, lets assume that there are 1000 bytes per item.  Each bucket holds 4096 bytes, so approximately 5 items per bucket.
 
67000 items/5 indicates 13200 buckets
 
so.... CREATE-FILE FILENAME 3 13200  should do it.
 
Am I correct ? or is 13200 too much?
 
It sounds reasonable.   Fill it with data and then use jrf FILENAME   to resize it.
Dave.
--
IMPORTANT: T24/Globus posts are no longer accepted on this forum.
 
To post, send email to [email protected]
To unsubscribe, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/jBASE?hl=en


--
IMPORTANT: T24/Globus posts are no longer accepted on this forum.
 
To post, send email to [email protected]
To unsubscribe, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/jBASE?hl=en
--
IMPORTANT: T24/Globus posts are no longer accepted on this forum.
 
To post, send email to [email protected]
To unsubscribe, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/jBASE?hl=en

--
IMPORTANT: T24/Globus posts are no longer accepted on this forum.
 
To post, send email to [email protected]
To unsubscribe, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/jBASE?hl=en

Reply via email to