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

Difference between creating a report using Printer file and WRKQRY(Query Report) ?

3 Answers  


parameters cannot be passed in which one???

4 Answers   CTS,


Hi, I am getting the error in RPG (All Record Formats for externally-described file ABCD ignored or dropped due to error; file ignored.) Please suggest any

2 Answers   Satyam,


in rpg could u please tell me errors types and meanings like 3030 that ....

1 Answers   EXL, UHG,


Can you copy the records created by the OPNQRYF to other files and how?

2 Answers  






How to declare the pull button in AS/400..

0 Answers  


how to retrieve RRN value in RPGLE program

3 Answers  


A pgm subroutine calling child subroutine, that child subroutine again calling parent subroutine, u have 1000 lines of code, with out debugging , how can u find that error??? Is there any command to find errors in pgm???

3 Answers   HSBC,


How do u design a physical file, when you have 2 Unique fields like for eg in A student file student ID and student examination no both are unique

0 Answers  


Hi,Please give me complete code with this logic. The question is how to read the records from a file with load an array of size with error condition? (The logic is Z-Add 0 IDX *LOVAL SETLL FILE READ FILE 99 *IN9 DOWEQ *OFF IDX ANDLT 99 ADD 1 IDX MOVE FIELD ARR,IDX READ FILE 99 ENDDO)please give me complete code with explanation?

1 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,


how can i retrieve the field name from display file at run time? Devendra Singh Tomar

3 Answers  


Categories