Assume my file has 100 records and I want to see only first 10 records. Is this possible through lf?



Assume my file has 100 records and I want to see only first 10 records. Is this possible through lf?..

Answer / sagar sudhakar wagh

Yes it is possible through LF. We can use SELECT/OMIT keyword to filter the record of physical file according to our need.

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More RPG400 Interview Questions

What is the difference Return and InLr?

3 Answers  


How can you determine the number of characters in a variable?

3 Answers  


What is difference between bind by copy and bind by reference?

0 Answers  


1.Are there any errors in the following statement?If so then list them.DTAARA is a data area having a field EMP # and EMPNO is a field in the file EMPPF.Which has one record. READ EMPPF IF %FOUND(EMPPF) IN DTAARA EVAL EMP#=EMPNO OUT DTAARA ENDIF

5 Answers  


How do you do indexing in a physical file?

2 Answers  






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

1 Answers  


suppose there are 100 records and i want to read records between 60-70 how we can read this 10 records in rpg

2 Answers   Polaris,


What are the necessary keywords required to code a message subfile?

3 Answers  


is this a rpg channel?

0 Answers   IBM,


HOW TO DELETE THE RECORD FROM MASTER FILE WHICH IS LINK BY ANOTHER TRASATION FILE WITH REFERTIAL INTYGRITY?

1 Answers   TCS,


why we do STRSRVJOB in batch debugging in as400

1 Answers  


Hi friends, I am using a load all subfile , and currently i am in in the third page of the subfile , from third page i have selected a record and called some other program .on returning, subfile is being loaded from the frist page. so can any one kindly suggest me in retaining my third page after returning. i.e loading from third page.

7 Answers  


Categories