IBM DB400 Question:

Download Job Interview Questions and Answers PDF

What is the purpose of the chain and setll and setgt?

IBM DB400 Interview Question
IBM DB400 Interview Question

Answer:

CHAIN is used for random retrieval from a File. In other
words, whatever value used by programmer in Factor 1/Key
against CHAIN opcode will be used as search/find criteria in
database file. NO VALUE RETRIEVED IN NO CRITERIA MATCH. It
can be well understand, in case of using composite keys.

But in case of SETLL and SETGT, program will return some
value, if any value present in the database/physical file.

CHAIN = Sets pointer on exact value

SETLL = Sets pointer on Lower Limit of the value

SETGT = Sets pointer on Greater Limit of the value

==========================================================

It is recommended, use CHAIN only, if record exist in
database file, instead of SETLL and SETGT, which can be used
otherwise.

Download IBM DB400 Interview Questions And Answers PDF

Previous QuestionNext Question
A pf containing 100 records... my query is how to display from 11th record in the pf?what is the interactive job? what is the batch job? How to change the batch job to interactive job?