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

how can we write LF using flatfile.

9 Answers  


How to read a PF in reverse(from last rec to first) using CL?

3 Answers   HCL,


How to update physical file using logical file with example?

0 Answers  


how to know total no of records in pf with out using sql??????

3 Answers  


wirte a simple program for read file in cl

2 Answers   Active Brains,






How to know the perticular record in pf with out reading?

2 Answers   Cap Gemini,


what is dynslt and why we use that command when do we use command

2 Answers   Active Brains, UHG,


what is general and type of general

1 Answers   Active Brains,


what is the difference between adding keys & constraints into a phisical file

6 Answers   HSBC,


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

8 Answers  


1. How can I create a LF using crtlf command based on a particular member in a multimember PF? Where I have to specify the member name? 2. How to differentiate between the types of join from a Join logical file DDS. Is it possible to have different types of Join Logical files? 3.Any performance difference between Opnqrf and Embedded SQL? When I should prefer Opnqryf and when SQL? 4. I know access path is the path chosen by the program to retrieve data. It can be of keyed access path or arrival sequence. *IMMED- *IMMED description says access path is updated each time record is added or deleted from a member. - What is updating here? *REBLD - The access path is completely rebuilt each time a file member is opened. The access path is maintained until the member is closed, then the access path is deleted. - I am not able to understand this completely. Could anyone explain these more clearly? 5.What is the purpose of using activation group. I know it is a resource allocator, but other than this any other benefits of using an activation group?

2 Answers   IBM,


How to insert more than one record to a pf at a time?(Bulk insert to a pf)

9 Answers  


Categories