|
Bob,
Will a MOVEL or EVAL overwrite the length bytes?
-mark
The only down-side is that the data in the extended area is not recoverable when the record is deleted. Data for the field is moved into the extended area when the "average length" is exceeded. That is the value you put on the VARLEN(xx) keyword. Other than that... no issues that I've seen. -Bob
-----Original Message----- From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of mlazarus@xxxxxxxx Sent: Tuesday, October 19, 2004 11:15 AM To: rpg400-l@xxxxxxxxxxxx Subject: Any gotchas using VARLEN fields?
Is anyone using VARLEN fields in DDS? We are thinking of implemeting it in a few files that have some large, seldom used, text fields.
1) Do the leading length bytes always have to be taken into consideration or will an EVAL or MOVEx know where to put the data (similar to the VARYING keyword)?
2) Does the target length have to be set manually when updating the field or will RPG set it properly?
3) If the H spec and compile do not specify CVTOPT(*VARCHAR), will the program bomb on a read, even if the VARLEN field is not referenced in the pgm?
A search seems to turn up little useful information (from a big picture standpoint.) Does anyone have a writeup, article, link, manual etc. they can send?
Thanks.
-mark
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.