|
On Tue, 22 May 2001, Paul Jackson wrote: > Does anyone know if there is an API that I can use to > retrieve the "allocated length" of a variable length > field in a database file? > Have you tried the QDBRTVFD API? The docs for it state that the length it returns for a variable-length field would be the max length + 2. That seems to be what you need -- but this API is somewhat more complicated to use than QUSLFLD... > It seems the QUSLFLD API only tells you that the field > is variable length, it doesn't tell you anything else > about the field. It seems the DSPFFD command outfile > facility tells you this, but I am trying to modify a > program that is already using the API. DSPFFD is an option too... albeit, it's a slower, less robust option... but it'll almost certainly take less time to code... If QUSLFLD doesn't give you want you want, you'll have to do something else... The fact that the programs already using QUSLFLD won't save you much if it doesn't give you the information you need :) +--- | This is the RPG/400 Mailing List! | To submit a new message, send your mail to RPG400-L@midrange.com. | To subscribe to this list send email to RPG400-L-SUB@midrange.com. | To unsubscribe from this list send email to RPG400-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-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.