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

What is open data path?

0 Answers  


Is Constent can be define as a key field?

3 Answers  


Suppose I have a pf,it contains 5 members,how to access particular member data from logical file ?and what is the use of member in pf?

0 Answers  


How to find the list of source physical files in a library?? Is there any way to get a list??

5 Answers   Infosys,


Last statement of any rpg program is lr?

0 Answers  






There are six records in a file and we are going to update that records and used commit operation when it complete the update but suppose when it updating the third record,a error occured and operation failed.Is previously two records will be update or whole operation will be rollback? Please confirm it.

2 Answers  


How to read a pf in reverse(from last record to first) using cl?

0 Answers  


Can anybody tell why Journalling is compulsary before Commitment Control?

2 Answers  


What is open data path? And what is the difference between access path and open data path?

1 Answers  


what is the intractive job? what is the batch job ? how to change the batch job to interactive job?

2 Answers   Four soft,


what is use of self join and which cases you will use this join

1 Answers   TCS,


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

1 Answers  


Categories