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



At 03:04 PM 9/19/97 -0400, you wrote:
>
>phelpswr@alpha.obu.edu wrote on 09/19/97 at 11:31:08
>
>
>
>>I have a physical file with a name field containing mixed case
>>letters. I would like to use the name as a key field. On my
>>programs I always provide an input field to position the list.
>>User's have a difficult time getting the name keyed in the exact
>>upper/lower case to position the list correctly. What are some ways
>>to design a logical file or the application to ignore the case and
>>position the list correctly.
>>
>>Thanks in advance....
>---------------------------------------------------------------------------
>----------------***********************************************************
>********************************
>
>The AS/400 DDS book indicates how to use the keywords ALTSEQ and TRNTBL to
>achive what you are looking to do. (use the QSYSTRNTBL Table in QSYS)
>Create a new field and use this new field for Key (ndex). Good Luck.

Another approach would be to take advantage of the STRSEQ parameter of OPNQRYF or CHGJOB.

SRTSEQ
Specifies the sort sequence to be used for sorting and
grouping selections specified on the QRYSLT or
GRPSLT parameters, joins specified on the JFLD
parameter, ordering specified on the KEYFLD param-eter,
grouping specified on the GRPFLD parameter,
%MIN or %MAX built in functions, or unique key values
specified on the UNIQUEKEY parameter.

*JOB: The SRTSEQ value for the job is retrieved for
the job.
*HEX: A sort sequence table is not used. The
hexadecimal values of the characters are used to deter-mine
the sort sequence.
*LANGIDUNQ: A unique-weight sort table is used.
*LANGIDSHR: A shared-weight sort table is used.

The name of the sort sequence table can be qualified by
one of the following library values:
*LIBL: All libraries in the job's library list are
searched until the first match is found.
*CURLIB: The current library for the job is
searched. If no library is specified as the current
library for the job, the QGPL library is used.
library-name: Specify the name of the library to be
searched.

table-name: Specify the name of the sort sequence
table to be used with this query.

I think *LANGIDSHR is the value you want to use. Multiple characters (upper- and lowercase) share the same weight in the sort.

Cheers


Vernon Hamberg
Systems Software Programmer
Old Republic National Title Insurance Company
400 Second Avenue South
Minneapolis, MN 55401
(612) 371-1111 x480 +--- | This is the Midrange System Mailing List! | To submit a new message, send your mail to "MIDRANGE-L@midrange.com". | To unsubscribe from this list send email to MAJORDOMO@midrange.com | and specify 'unsubscribe MIDRANGE-L' in the body of your message. | Questions should be directed to the list owner/operator: david@midrange.com +---

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.