|
midrange-l-request@xxxxxxxxxxxx wrote: > 1. Variable length fields (d.bocian@xxxxxxxxxxx) > >As a proof-of-concept, we created a file with eight fields, all variable >length. We set the maximum field sizes at 10 bytes, 20, 30, 40, etc. After >compiling the file, we added three records. The record length was 376 bytes; >the total size of the file was 32768 bytes. The two-byte length at the >beginning of each field was correct for the data in that field, so everything >seemed okay. David: You mentioned that the fields were defined as variable-length, but you didn't describe what you assigned as allocated-length. If allocated length is equal to field-length, then each field will pfysically end up being two bytes longer than an equivalent fixed-length field. Try with an allocated-length of 1 or 5 or 10, then report back with results. Note that allocated length is set by VARLEN(alc_len). Tom Liotta -- Tom Liotta The PowerTech Group, Inc. 19426 68th Avenue South Kent, WA 98032 Phone 253-872-7788 x313 Fax 253-872-7904 http://www.powertech.com __________________________________________________________________ Switch to the New Netscape Internet Service. As low as $9.95 a month -- Sign up today at http://isp.netscape.com/register Netscape. Just the Net You Need. New! Netscape Toolbar for Internet Explorer Search from anywhere on the Web and block those annoying pop-ups. Download now at http://channels.netscape.com/ns/search/install.jsp
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.