Hi Guru's , I am new to RPG . I would like to know when record will be locked ? Example-1 : PGMA, using a PF1(Physical file) in input mode , PGMB using a logical file based on PF1, in input mode. In this case record will be locked or not (using read or chain or setll operation codes) ? If I will use pf1 in PGMA as inupt mode and in PGMB as update mode , does record will be locked or not ? I have seen when both the files in both the programs using file type in update modere record has been locked .