I personally would hate this becoming a SYSVAL...maybe a BIF to
determine the string len buffer size?
Just brain storming (or cramping pick one)...
 
Thanks,
Tommy Holden
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[
mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Bob Cozzi
Sent: Friday, May 11, 2007 1:34 PM
To: 'RPG programming on the AS400 / iSeries'
Subject: RE: Max length of a VARYING field
SysValues... oh bother.... 
-Bob Cozzi
www.i5PodCast.com
Ask your manager to watch i5 TV
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[
mailto:rpg400-l-bounces@xxxxxxxxxxxx] On
Behalf Of DeLong, Eric
Sent: Friday, May 11, 2007 9:52 AM
To: RPG programming on the AS400 / iSeries
Subject: RE: Max length of a VARYING field
Perhaps if this occurs, IBM will control this with a new system value.
Then you
could RTVSYSVAL to initialize your VarLenOffset.
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[
mailto:rpg400-l-bounces@xxxxxxxxxxxx]On Behalf Of Bob Cozzi
Sent: Friday, May 11, 2007 9:18 AM
To: 'RPG programming on the AS400 / iSeries'
Subject: RE: Max length of a VARYING field
If IBM changes the max length of variable length fields (and DS, and
regular
fields) to 16MB, then I suspect that they will increase the hidden
length
attribute to 10I0 or 10U0. Which would mean "4" would be the, then,
correct
magic number.
Off hand, I can't think of another way to do this, but I would suggest
that IBM
may (should?) introduce along with that field-length increase, a new
built-in
that lets you get the %maxlen() of a variable length field. 
-Bob Cozzi
www.i5PodCast.com
Ask your manager to watch i5 TV
-----Original Message-----
From: rpg400-l-bounces+bob=rpgworld.com@xxxxxxxxxxxx
[
mailto:rpg400-l-bounces+bob=rpgworld.com@xxxxxxxxxxxx] On Behalf Of
AGlauser@xxxxxxxxxxxx
Sent: Friday, May 11, 2007 9:02 AM
To: RPG programming on the AS400 / iSeries
Subject: RE: Max length of a VARYING field
Tommy Holden wrote on 11/05/2007 09:45:54:
Then use a constant... VarFldLenBytes        c       Const(2)  or 
some other thingy...then 2 isn't a "magic number" it's pretty self-
documenting what you're doing... 
Thanks Tommy - that's what I was thinking about doing.  I guess I just 
wanted to make sure that there wasn't a %maxlen() or something that I
had 
somehow missed seeing.
Attention:
The information contained in this message and or attachments is 
intended only for the person or entity to which it is addressed and may
contain 
confidential and/or privileged material. Any review, retransmission, 
dissemination or other use of, or taking of any action in reliance upon,
this 
information by persons or entities other than the intended recipient is 
prohibited. If you received this message in error, please contact the
sender and
delete the material from any system and destroy any copies. Thank you
for your 
time and consideration.
Attention: 
Le contenu de ce message et(ou) les fichiers ci-joints sadressent 
exclusivement ` la personne ou -entiti ` laquelle ils sont destinis. Ils
peuvent
contenir de linformation confidentielle, protigie et(ou) classifiie. Il
est 
strictement interdit ` toute personne ou entiti autre que le(la)
destinataire 
privu(e) de ce message dexaminer, de riviser, de retransmettre ou de
diffuser 
cette information, de prendre une quelconque action en fonction ou sur
la base 
de celle-ci, ou den faire tout autre usage. Si vous avez regu ce
message par 
erreur, veuillez communiquer avec lexpiditeur(trice), supprimer ce
message et 
les fichiers ci-inclus de tout systhme, et en ditruire toutes copies,
quelles 
soient ilectroniques ou imprimies. Nous vous remercions de votre entihre
collaboration. 
As an Amazon Associate we earn from qualifying purchases.