In case if I want to know whether a record exists in a file, which one do you prefer CHAIN or a SETLL and why ?



In case if I want to know whether a record exists in a file, which one do you prefer CHAIN or a SETL..

Answer / sandey243

If you just want to know whether the record exists or not, SETLL is best as it just points to the record and doesn't store the data in to fields ( time saving ) where as CHAIN will read and stores the data in to fields ( time consuming ).

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More RPG400 Interview Questions

Why there is invention of RPG if we can do insert update delete in CL through SQL.Why the rise of RPG?

1 Answers   Infogain,


what built in function can be used with SETLL.If you want to check whether the search argument is successful or not? Please give me answer with example?

3 Answers  


when will come session device error?

4 Answers   TCS,


Some times While checking MSGW for object / member / record locks ,I have seen it's locked by itself ...? How it happen and what action we need to perform if job is updating / writing a record....?

6 Answers   HSBC,


1.CA(command Atention key)& CF(command Function key) difference with example?Please can any body tell me in real time exp? 2.Can any body tell me some mandatery function keys using while creating any screen with use of SDA-FUNCTION kEYS?

5 Answers   HCL,






use of PUTOVR,OVRDTA,KEEP keywords?

2 Answers   HCL,


What is the OPEN and CLOSE accesspath?

3 Answers   CTS,


I need to generate outfile for object of all the user lib. in the sysmte using cmd DSPOBJD. But this cmd is correcpted in my server,Any body tell me is there any alternative...?

2 Answers  


what are the key words you must use when using a subfile?

0 Answers   IBM,


how to retrieve particular field records from a physical file,say i have a physical file called 'employee' in it i have to retrieve the records of a field 'admin' present in pf 'employee' using rpg,but i should not use logical file or openquery file.

3 Answers   iGate, Wipro,


can anybody explain significance of *loval setll with example code????

3 Answers   HSBC,


How can a screen field that has changed since the last output operation be detected?

4 Answers   IBM,


Categories