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

during execution, an rpg/400 program automatically follows a sequence of operations for each record that is processed. The built-in program cycle includes the following logical steps.

758


How do u design a physical file, when you have 2 Unique fields like for eg in A student file student ID and student examination no both are unique

551


What is ment by record level identifier?

658


Assume 2 users are using the same file and first user updates some record in the file. Will the 2nd user will be able to see the updated record or not?

519


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

758






write an RPG program to calculate the marks of 5 students (A,B, C, D, E)in 3 different subjects (eng, math, sci) an display on the screen

833


how do I declare a table or array in rpg iv?

739


1. If there are two programs using same file and 2 users are using the file at the same time and what can be done to allow them both to access? 2. How can remove lock from the file for accessing it by both users?

495


How to define data area in RPG program? In which scenario multi occurrence DS is use in AS400?

1565


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

1973


how do I play {insert rpg system here}?

588


How to select highest score of each subject or how to select highest income of every month?

1299


what happens when sflsiz = sflpag? What are the advantages and disadvantages?

715


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

721


how do I declare a minor?

718