I read opt(options) in the subfile. If all the entered option is valid(i.e 1) then i have to write the record into PF else not. I read subfile by READC first till EOF.
then i set RRN=1 and then inorder to update again i use READC. but when it reach DOW NOT%EOF it come out of the loop. si i could not able to write the records. Could you please suggest right way to do the same.