× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: Re: VARLEN vs "BLOCK" Storage
  • From: Jon.Paris@xxxxxx
  • Date: Thu, 14 Jun 2001 12:11:03 -0400


 >> My manager is concerned by the amount of storage that my suggestion
would use... to much DASD" (as defined by the DSPFD command).

In essence your method will only use 100 bytes per record unless the actual
field content exceeds 100 bytes.

You manager should also take into account the amount of time that will be
spent repairing links etc. when the scheme he is proposing "breaks".  Since
you can't keep pointers in a file (and even in a user space they are
invalidated by save/restore) you have no alternative but to keep your own
positioning information and then rebuild pointers as needed.  On top of
that there is the logic needed to span records, plus the problems caused by
any update in the text that causes the field to "grow" (which could well
finish up looking like pinball).  On top of all this _none_ of the utility
software like DFU, or SQL, or ODBC can be used against the file - do you
really want that kind of situation.

DASD is cheap compared to the pain and suffering of the proposed method -
besides - your approach won't use much space anyway!

Jon Paris
Jon.Paris@e400.com

www.e400.com - A new wave of iSeries and AS/400 Education

+---
| 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 thread ...


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.