|
The varlen field only uses 2 bytes + the length of the data. How long will your pointer be? Bet ya it is more than two bytes. DSPPFD show the max length avail. I/O buffers allocate the entire length for the record and blank fill the buffer. This only uses storage for records in use, not stored on the disk. Christopher K. Bipes mailto:ChrisB@Cross-Check.com Operations & Network Mgr mailto:Chris_Bipes@Yahoo.com CrossCheck, Inc. http://www.cross-check.com 6119 State Farm Drive Phone: 707 586-0551 x 1102 Rohnert Park CA 94928 Fax: 707 586-1884 -----Original Message----- From: Michael Smith [mailto:msmith@telapex.com] Sent: Thursday, June 14, 2001 5:14 AM To: MIDRANGE-L@midrange.com Subject: VARLEN vs. "BLOCK" Storage My manager is considering developing a storage algorithm to store a variable length text field in a 32K record. He plans to using a unique key field with a "pointer" into the 32K record; in essence "packing" multiple fields into one 32K block. I have suggest that a better method would be to define the text field as VARLEN will an allocated length. 0001.00 A R TEST00 0002.00 A TEXT 32000 VARLEN(100) ****************** End of data ************************* My manager is concerned by the amount of storage that my suggestion would use... to much DASD" (as defined by the DSPFD command). +--- | This is the Midrange System Mailing List! | To submit a new message, send your mail to MIDRANGE-L@midrange.com. | To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com. | To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +---
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.