I have this logical source file:
A S VALIDFLAG CMP(EQ '1')
A S ITEMPFX CMP(EQ 'PF')
But it seems that it works as an OR when I use the logical file using SQL. Where can I place the AND?
I checked this link but it doesn't have a sample for the AND.
https://www.ibm.com/docs/en/i/7.1?topic=80-comp-comparison-keyword-physical-logical-files
I tried this but it is having an error on the AND.
A S VALIDFLAG CMP(EQ '1') AND
A S ITEMPFX CMP(EQ 'PF')
ANDsyntax, is not supported. Assuming that I am reading the documentation correctly. But I also I think you might be misinterpreting something when you say "But it seems that it works as an OR when I use the logical file using SQL". To me, that doesn't make design sense. You don't validate that one of the fields of a file is valid. You validate all of the fields. That suggests that there is an implicit AND.[ibm-midrange]. It is >about<[ibm-information-server]. Isn't it?