Alternate Collating Sequence

0 pts.
Tags:
AS/400
DB2 Universal Database
RPG
I have a logical file keyed by email address and defined with ALTSEQ and dynamic select/omit. My problem is if I perform a READEQ for a specific key value, only records with lower-case keys are returned. I expected the upper-case entries to also be returned. Can anyone shed any light on why this might occur and how I might correct the problem? Thanks for any and all assistance.
ASKED: October 9, 2006  3:26 PM
UPDATED: December 24, 2009  10:39 AM

Answer Wiki

Thanks. We'll let you know when a new response is added.

The problem is that ALTSEQ only changes the order in which records are returned. It will not make ‘A’ = ‘a’. To do that you need the TRNTBL keyword to force one or more fileds on all records (in that logical only) to be returned as upper or lower case.
There is a system supplied table QSYSTRNTBL which forces everything to upper case so you couuld use this to map all the email addresses to uppercase so that you can match all regardless of case.
I don’t think there is a system supplied forced lower case table, so if you wanted that you’d have to create your own translation table.

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • TomLiotta
    What table did you specify for ALTSEQ? What are your Select/Omit criteria? Tom
    125,585 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following