IBM QSAM Question:
Download Questions PDF

Suppose I have a KSDS File. I have a Records like 1,2,3,4,5,6,...100. I want to read using Dynamic mode like from 10 the Record onwards like, 10,12,14,16,18,....60. Wat is the command for this?

IBM QSAM Interview Question
IBM QSAM Interview Question

Answer:

By using START command
Example :

START filename
KEY is EQUAL TO keyname
[INVALID KEY ...........]
END-START


PERFORM UNTIL end-of-file
READ filename NEXT RECORD
AT END
SET end-of-file TO TRUE
END-READ
END-PERFORM

Download IBM QSAM Interview Questions And Answers PDF

Previous QuestionNext Question
What is QSAM file?What is QSAM? Use of the QSAM? How it is used?