I think you may have to use SQL.
select length(trim(fieldname)) from library/file
There is no trim function in Query400 that I know of.
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of John McKee
Sent: Friday, March 14, 2008 10:39 AM
To: Midrange Systems Technical Discussion
Subject: Query/400 - length of field content
Is it possible to get the length of the content of a field withing
Field length is 255. I am attempting to organize the fields by the
length of the none blank portion. Thus ABLE length of 4, BAKER length
I have tried using the length keyword to build a new field. That just
returns 255. Not helpful. Tried wrapping VARCHAR around the field
withing the length function. Same result.
Guess I could use SQL.....
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at http://archive.midrange.com/midrange-l