The RESETBR command is used to reset our starting point in the middle of a browse. basically, It establishes a new browsing point.
To restart browsing from a different file location. This is similar to an ENDBR followed by a STARTBR, but is more efficient because the VSAM resources will be re-allocated rather than de-allocation and fresh allocation.
Below is the syntax for RESETBR command.
EXEC CICS RESETBR FILE('file-name') RIDFLD(data-area) GTEQ END-EXEC.
Let us see the parameters used in the RESETBR command.
Specifies the name of the file to be accessed.
Specifies the record identification field.
It has the name of the data area containing the key of the record which we want to read.
If you have any doubts or queries related to this chapter, get them clarified from our Mainframe experts on ibmmainframer Community!