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



Create a loop and test the substring positions of the field for blanks
starting from the first position.  Add 1 to a counter until you hit a blank
position. The counter is the length.  If it is a multi word field (city
field where city name could be two or more word, i.e. Fort Smith), start the
search from the right. Test for a character. When one is found, subtract one
from the counter then subtract the counter form the field length.


Gregory A. Garner
Garner Data Systems, Inc.
4270 Grand Teton Parkway
Suwanee, GA 30024
770 845 9636



-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx]On Behalf Of Vernon Hamberg
Sent: Friday, March 04, 2005 11:36 PM
To: Midrange Systems Technical Discussion
Subject: RE: Any way in the CL program to find the length of the
character datastored in a variable?


This is an API - you can probably find it on google, or go to
www.iseries.ibm.com/infocenter and look under programming, then APIs

HTH
Vern

At 10:26 PM 3/4/2005, you wrote:
>Thanks Doug....
>Is it an API?... Wats the Parm list for this...  Coudnt get any in my
>manuals...
>
>Thanks
>Siva.
>
>
>Doug Hart <DougHart@xxxxxxxxxxxx> wrote:
>
>QCLSCAN
>
>
>---
>Doug Hart
>
>
>
>-----Original Message-----
>From: midrange-l-bounces@xxxxxxxxxxxx
>[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Siva
>Sent: Friday, March 04, 2005 11:02 PM
>To: MIDRANGE-L@xxxxxxxxxxxx
>Subject: Any way in the CL program to find the length of the character
>datastored in a variable?
>
>
>Is there any way in the CL program to find the length of the character data
>stored in a variable?
>
>I find there is no direct CL command to acheive this... may be some
>roundabout way there to do this... but nothing striking at this moment....
>
>i think of some prgm calls with the required variable as the parm and the
>receiviong prgm process the variable etc... but couldnt get any logic here
>:-)......
>
>
>Thanks
>Siva.
>
>
>
>
>
>__________________________________________________
>Do You Yahoo!?
>Tired of spam? Yahoo! Mail has the best spam protection around
>http://mail.yahoo.com
>--
>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 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.
>
>
>__________________________________________________
>Do You Yahoo!?
>Tired of spam?  Yahoo! Mail has the best spam protection around
>http://mail.yahoo.com
>--
>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 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.


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.