That's a pretty good way.
-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 AGlauser@xxxxxxxxxxxx
Sent: Friday, May 11, 2007 8:27 AM
To: RPG programming on the AS400 / iSeries
Subject: Max length of a VARYING field
Hi everyone,
Just wanted to make sure I'm not missing something.  Is there a better way 
to find the maximum number of characters that will fit in a VARYING field 
than 'maxlen = %size(varyingField) - 2'?
Thanks,
Adam
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.