IBM RPG400 Question:
Download Questions PDF

How can we search particular records from the database file in RPG. For example, there are
100 records in the file.i need to retrieve all the records matching/equal to the particular NAME field. How can we do the above using SEARCH criteria other than using the IF cond?

IBM RPG400 Interview Question
IBM RPG400 Interview Question

Answers:

Answer #1
This can be done using the Key Field.

KEY1(NAME FIELD) SETLL FILENAME
KEY1(NAME FILED) READE FILENAME

Answer #2
Fld_name CHAIN RCD_FMT_Name/File_Name

Download IBM RPG400 Interview Questions And Answers PDF

Previous QuestionNext Question
We have job which is running as batch. it takes atleast 06hours to complete tht job. bu i wanna do tht job with in 3hours?What is the difference between ITER and DO ? I know both are used to execute set of statements repeatedly, but what is the main difference?