On Mon, May 19, 2025 at 7:35 AM cesco via RPG400-L
<rpg400-l@xxxxxxxxxxxxxxxxxx> wrote:

But, at the end of the day, you need to store the thing somewhere, print somewhere etc. (despite the "infinite string" illusion of some languages).

Yes, but if you're not bound by the fixed-byte-size storage model
imposed by physical files, the "illusion" can be much more easily
preserved. If you're working exclusively with stream files, for
example, it's somewhere between trivial and automatic to just use more
bytes as needed, and always present the programmer or user the full
number of characters they expected and asked for.

Because Db2 for i tables are ultimately PFs, I am not surprised that
you get a fixed number of bytes. But other database systems might not
have the same constraints, and thus might choose to implement their
character fields differently, such that the number of characters
declared is always honored.

John Y.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

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

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.