what is the purpus of the chain and setll and setgt ?

Answers were Sorted based on User's Feedback



what is the purpus of the chain and setll and setgt ?..

Answer / sameer tirkey

Chain would fetch a record based on search criteria and put the result in the input field. The search condition could be key value or rrn , based on the value fed the search is made and the records are fetched.

Is This Answer Correct ?    6 Yes 0 No

what is the purpus of the chain and setll and setgt ?..

Answer / k

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.
========================================================

Is This Answer Correct ?    5 Yes 0 No

Post New Answer

More DB400 Interview Questions

Suppose if a physical file is having 1000 records, but i deleted 500 records from it. Here the concern is can the size of the file changes or it remains the same... kindly help me out with thorough xplanation.... Thanks in-advance...

6 Answers   ABC, TCS,


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

0 Answers  


what is open data path? and what is the diff b/w access path and open data path?

3 Answers   Cap Gemini,


I have physical file with 100 records,there is no any duplicate records in this pf.based on this pf one logical file I have used.but this lf is viewing only 80 records only of that pf?what is the reason for this?

0 Answers  


Which keyword is used both in subfile and subfile control record format of a DSPF?

8 Answers  






How to add a field to a PF and compile it without loss of data?

7 Answers  


What is the interactive job? What is the batch job?

0 Answers  


I had created one physical file tell me command to enter data in to?

1 Answers  


one physical file can have how many max of logical files? what is the primary file?

3 Answers   Four soft,


What is the interactive job?

0 Answers  


pls anyone explain about compile time array,pre run time array run time array

4 Answers  


WHAT IS THE DIFFERENCE BETWEEN 'COLHDG' AND 'ALIAS'?

5 Answers   Accenture,


Categories