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

can anyone say,what is the use of operation extended H/N/P?

2 Answers  


Why we need to give File and To file Names While we are using OVRDBF. What is your understanding related to this?

2 Answers   Cap Gemini,


steps for debugging two rpg programs????

4 Answers  


Hi, can any one tell me :IN CASE OF SINGLE PAGE FILE HOW WILL I LOAD THE PREVIOUS PAGE WITHOUT THE USE OF SFLCLR INDICATOR ?

3 Answers   IBM,


How to sort an array in descending in RPG

3 Answers   Google, TCS,






1.If *HIVAL SETGT is used what opcode is used to read a record? A:READ B:READPE C:CHAIN D:READP 2.How to pass numeric parameter to the rpg pgm from the command line? 3.What keyword is used on the rpg 4 definition specification to rename a subfile in an externally definition data structure? A:RENAME B;LIKE C:EXTNAME D:EXTFLD

4 Answers   Manhattan,


Hi guys, anybody know How RPG/400 code can be converted to RPG IV code with a single command?

1 Answers  


How do you proceed in case your active AS400 session has got disconnected suddenly, how can you get back to your session ? Is it possible??

1 Answers  


RPG/400 faqs?

1 Answers   HSBC,


Can we found a record existance in a file w/o reading the file?

6 Answers   Traitsys Technologies,


1.String operatio such as moving the characters to the variables? 2.what are the building functions for check file longs? 3.which of the following methods will make externally describe file fields available to a program? A: A/copy statement that specifies the library file and member of the field reference file source code B: A data structure definition specification that names the file on the EXTNAME keyword C: A data structure definition specification that names the file on the IMPORT keyword? D: A Definition specification for each desired field with the REFFLD keyword

1 Answers   CSC, CTS,


do you use message subfiles? What are the necessary keywords required coding a message subfile?

0 Answers   IBM,


Categories