This is an interview question for Open query but a bit tricky thing also.
We are using OVRDBFand OPNQRY to change the key field in LF(TESTLF) FROM A,B,C TO C,B,A,.
And going to call RPGLE program, in RPGLE program same LF is declared with C,B,A key list (but according to LF it should be A,B,C). What will happen? I said klist error will occur. To over come this we will use one keyword what is that? I don't have any clue about this. I tried this concept but compilation issue if we use keylist. without keylist (just Use Read opcode) there is no issue the data will be fetched according to C,B,A key list. How to use klist without Compilation Error. I am very eager to know the answer. Please help me with this.