How can I read from a VSAM file continuously? I have a VSAM file contining some records. I need to read records one by using CICS commands, but I dont know where the file ends.Is there any way to signal that the file has reached the end to stop the reading process.
I tried ´EXEC CICS READNEXT
You browse through a file using STARTBR followed by multiple READNEXT commands and then an ENDBR command. You repeat the READNEXT command to read all the records in the file and when the end of the file is reached the READNEXT command fails with an ENDFILE response. You then issue end ENDBR.