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



On 14-Jun-2017 20:19 -0600, CRPence wrote:
<<SNIP>>
Note: REXX has a WORD function; would the effects of that function
be compatible with the definition of "words" used in the OP? Then
there is additionally, a WORDS function, to obtain a count to know
how many to process against which to perform the LENGTH function.

[...]
If the process/feature is specific to the one or similar files, and
the REXX capabilities match the requirements for "words", then I
would probably just write the code in REXX SQL; i.e. use SQL coded in
REXX to obtain the data as REXX strings with FETCH, and use the REXX
string functions to parse those strings.

For reference, the following REXX code [run interactively], produces the output that follows; noting, that the effect suggests, the question mark is part of the "word":

s = "¿How many sentences have mistakes?";
do i=1 to words(s) by 1;
if length(word(s, i))>8
then say "["word(s,i)"]>8";
end;


[sentences]>8
[mistakes?]>8
Press ENTER to end terminal session.



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.