If I have a file with 5 record and that file has 2 Key field and I want to read the unique record of the file then how can we achieve it?



If I have a file with 5 record and that file has 2 Key field and I want to read the unique record of..

Answer / mahalakshmi

Give file level keyword as the unique based on first keyfield

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More RPG400 Interview Questions

How to read a record from file where there is multiple record occurrence is available?

1 Answers  


can i use UPDDTA command in rpg program in which contains a file

1 Answers   TCS,


Are all these RPG/400 Interviewed Questions being asked recently? are current?

1 Answers  


Can any one plz explain the concept of INFSR, *PSSR, INFDS AND PSDS, I' confusing about PSDS and *PSSR, Wat is the difference btw them, wat PSDS will do????

1 Answers  


If the last record of a file has been read, and the next operation on that file is a READ operation, what will be the values of the input fields for that file? A. They will be blank and/or zero. B. They will be null. C. They will equal the values of the first record in the file. D. They will equal the values of the last record read.

3 Answers  






Suppose we have 10 records with same name and we are reading using READE,after 4 record i have to use CHAIN what is the output

3 Answers  


what is an online rpg?

0 Answers   IBM,


1.I have a Batch job, Running for 4 hours, i want to reduce the executing time to 2 hours what should you do?

5 Answers   Cap Gemini,


What is the difference Return and InLr?

3 Answers  


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,


explain sflclr, sflend, sfldlt, and sflcsrrrn?

0 Answers   IBM,


suppose a job is running for 15 minutes after that it goes to message wait? what are the impact analysis

1 Answers  


Categories