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

As Packed veriable store 2 digits in 1 byte and ZONE variable store 1 digit in 1 byte... Please tell me when we have to use Packed and Zone variable...?

1 Answers  


HI,1: What is the function of 'SETON LR' AND '*INLR=*ON ? 2:Can we used "seton lr" OR "*INLR = *ON" in between the program code ? 3:if yes then according to there function the code which is written acter seton lr/ *inlr should not be execute . Can any one tell me why those code get executed ?

2 Answers  


difference between CHAIN and READE?

8 Answers   HCL,


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.

2 Answers   iGate,


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 I can reread the physical file in CL program once the end of file reached in same CL program.

20 Answers   IBM,


what is the rpg system?

0 Answers   IBM,


I have to change a program. This program is calling a subroutine mor than 100times within it. so will it have any performance issue? if yes than what changes i can make. Thanx for ur valuable answer.

2 Answers  


Need a sql query: retrieve all duplicate records in table?

1 Answers  


purpose of pannel group??/

2 Answers   CTS,


explain sflclr, sflend, sfldlt, and sflcsrrrn?

0 Answers   IBM,


how to retrieve RRN value in RPGLE program

3 Answers  


Categories