result of CHAIN with a bad key

1930 pts.
Tags:
CHAIN
Rather than proving it out myself, it's so much easier to ask if anyone has run into this before. While researching a bug, I found a program that chains to a file using a 3-field key list. BUT - the 2nd and 3rd fields are "wrong" (defined as alpha in the key list but numeric in the file). Seems like the result is as tho CHAIN was done using only the 1st field. Is that what actually happens ? Just because I want it to be true doesn't mean it is.

Software/Hardware used:
as400

Answer Wiki

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

Discuss This Question: 5  Replies

 
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
  • CharlieBrowne
    It would seem top me that you would get a compile error because the key fields do not match.
    41,380 pointsBadges:
    report
  • aceofdelts
    good thought - so I compiled the source to a test library and it does compile OK
    1,930 pointsBadges:
    report
  • philpl1jb
    Numeric -- as in signed??? Cause then they are the same number of bytes. It will use all three. Remember a positive signed number is the same in signed and alpha. 
    50,505 pointsBadges:
    report
  • aceofdelts
    Drat - A more precise test does NOT compile. Thanks for the replies.
    1,930 pointsBadges:
    report
  • TomLiotta
    We would need to see the program data definitions, the program CHAIN statement and the file key definitions (of the one that compiled). A specific combination must be involved somewhere. I take it that you're otherwise satisfied all is well? -- 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