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.

John Arnold
(301) 354-2939

-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[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
of 5.

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

John McKee

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,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at http://archive.midrange.com/midrange-l.

This thread ...


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

This mailing list archive is Copyright 1997-2019 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].