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
ASKED:
October 19, 2012 7:08 PM
good thought – so I compiled the source to a test library and it does compile OK
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.
Drat – A more precise test does NOT compile. Thanks for the replies.
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