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

What is Multi Occurrence Data Structure(MODS)?

1 Answers   CTS,


I have two sessions S1 & S2 under this 3 jobs(say j1,j2,j3 under session S1) And 2 jobs(Say j4, j5 Under session S2)is running. How many QTEMP & how many LDA will create for the same.

9 Answers   IBM,


what is data area and how it is used in rpg program ?

0 Answers   IBM,


Set on command is used for closed all opened files , initialize var and release resource , return cmd is used for return to calling program but my req. Is dnt close opened files and resource must released while doing transactions , how can i do this...?

0 Answers  


please help me answer to this question what is the difference between the binding and srvpgm in ilerpg?

4 Answers   HCL,






what is ment by "MDT"

2 Answers   TCS,


two types of read performed in dataqueue?????

4 Answers   CTS,


Anyone help me for the below question:- If problem/error occur in *PSSR subroutine,how should I handel it in RPG program.

1 Answers  


What is the difference between RPG/400 and RPG4

1 Answers   HCL,


Why did we give STRSRVJOB while debugging batch program

3 Answers   HBL Power Systems,


purpose of pannel group??/

2 Answers   CTS,


what is estimation? and what is the level identifier parameter in PF?

3 Answers   TCS,


Categories