Interview Questions

What CICS command would you use to read a VSAM KSDS sequentially in ascending order?

CICS Interview Questions


(Continued from previous question...)

What CICS command would you use to read a VSAM KSDS sequentially in ascending order?

First issue a STARTBR (start browse), which will position the browse at the desired record. Retrieve records by using subsequent READNEXT commands. Indicate the end of sequential processing with the ENDBR command. If the generic key is specified in the STARTBR command position in the file will be before the first record satisfying the generic key. For reading in descending order use the READPREV instead of READNEXT.

(Continued on next question...)

Other Interview Questions