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 MONMSG IDENTIFIER FOR STRTCPFTP command IN cl (as/400)?

3 Answers  


How do I read records from Subfile? what is the purpose of READC explain with example?

4 Answers   IBM,


What is I90(Insure 90)?

1 Answers  


Need a sql query: retrive all duplicate records in table

3 Answers  


what is the difference between SETON RT & RETURN?

5 Answers  






What is the difference Return and InLr?

3 Answers  


If there are 1000 member(PGM type) in a SRC file. How can we compile in a CL program? ( It need to be done in a loop)?

1 Answers  


We have a Physical file, after reading 5 records,it has to read LF of that same Physical file,Will it start reading from Ist record or will start reading from 5th record?

5 Answers   Hexaware,


how to find whether a date format is valid or not in RPG400 not in RPGILE.Can you please write the coding for this sir,i'm new to AS400.Please help.

1 Answers  


what is post opcode do

1 Answers   CTS,


If record-format name in an externally-described file has already been defined as a file-name.how to solve this?

2 Answers   CTS,


what is the difference between do while and do until?

0 Answers   IBM,


Categories