• Subject: VARLEN vs "BLOCK" Storage
  • From: Michael Smith <msmith@xxxxxxxxxxx>
  • Date: Thu, 14 Jun 2001 07:13:42 -0500

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 essance "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).
 
Has anyone ever developed/used the "block" method?
What other comments would you have on either approach?
 
TIA
 
Michael Smith          

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 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.