The RP program is displaying records 11 times .But there
are 10 records in
a pf.(ie last record is displayed twice).How to
display records only 10 times?

Answer Posted / siva

Try this

Read File1
If %Found
Dou %Eof
|

|
Read File1
Enddo
Endif

Is This Answer Correct ?    1 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can we override a file during runtime in rpg?

680


give an eg of ACQ-(ACQUIRE),BIT OFF,BIT ON,DEALLOC,DUMP,FEOD,FORCE,MHHZO,MHLZO,MHLLZO,MLHZO,REL,RESET,TESTZ,TESTB,TESTN----GIVE SMALL EXAMPLE TO THE OPCODES...TO UNDERSTAND FUNCTIONING...........

3281


how do you use commitment control in rpg?

755


What is the diff bw PF/LF Name and their Record format name? what is restriction in record format then file name?

2513


can any one help in hawkeye and turnover or any change management system plzzzzz or send the documents to my mail id :gvsp.as4@gmail.com

1961






what is the procedure and explain about real time scenario.

1473


1. What is bound-by-call and bound-by-reference? 2. Where and why is *Nomain used? 3. What are the difficulties faced by programmers when using service programs? 4. Explain the different ways of parsing and compiling XML in iSeries.

5392


Suppose we have one database file and it is used by 5 programs and in 3 program we have to add some records in datbase file s what is the impact on other program?

1449


What are the types of identifiers?

566


Program to read marks of 10 students for 4 subjects and compute and display total marks and status of each student in rpg

712


What is the purpose of record level identifier?

724


how can you display specific subfile page on the screen in unequal subfile?

671


is this a rpg channel?

669


How can we know running job is batch or interactive?

647


How Chain operation copies the record's data to the input buffer for the program?

1076