I'm not much familiar with complex OPNQRYF statements. I need to select records from a file say FileA which has a field AccNo. I need to select those accounts whose country code ='002'. Country code comes from another file say FileB. FileB has account number as key. I know this is simple, but I am not able to achieve it.