× 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.



Yeah, I agree..... Please retract my suggestion. So far, adding a new keyword
seems to be the safest approach, since it leaves the choice up to the
developer...

Eric

-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx]On Behalf Of Scott Klement
Sent: Friday, May 11, 2007 1:50 PM
To: RPG programming on the AS400 / iSeries
Subject: Re: Max length of a VARYING field


DeLong, Eric wrote:
Perhaps if this occurs, IBM will control this with a new system
value. Then you could RTVSYSVAL to initialize your VarLenOffset.


Yikes, Eric... I don't think you thought this through at all :)

If you did this, some software vendors would require that the
QRPGVARSIZE sysval is set to 4, because they'd need support for longer
strings. Other vendors would require it to be set to 2 because they
wrote their software before the sysval was introduced. There'd be so
much ompatibility breakage across packages, it would be complete chaos.

You don't want to make this decision on a system-wide basis. You want
to make it on a per-field basis, or failing that, on a per-program basis.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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.