How I can reread the physical file in CL program once the
end of file reached in same CL program.

Answer Posted / naga srinivas.kattula

Ovrdbf file name with share

rtvmbrd to get the number of recoeds of file

Pos: Posdbf with positon *first

RCVf file name

count the loops

If no of records of file is equal to no of loops

goto POS

enddo

count+

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the types of identifiers?

564


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?

511


how do I preserve and clean the array?

667


When we have a file with Duplicate records and I want to read the unique record from the file. For example a file containing Emp Name as 'Ram' and there are 3 entries of it. So how to read a unique record from File?

496


which program rpg or cl is efficent to update a transaction onto a database file and why ?

734






how does the rpg element work?

711


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?

1445


How to write record if no field or the field are different in physical file in rpgle ?

479


What is the purpose of record level identifier?

722


how do I play {insert rpg system here}?

579


Please tell me how to read the records from a file with load an array of size with error conditions(The logic answer for this question is ARR is array of 99 elements Z-ADD 0 IDX *LOVAL SETLL FILE READ FILE 99 *IN99 DOWEQ *OFF IDX ANDLT 99 ADD 1 IDX MOVE FIELD ARR,IDX READ FILE 99 ENDDO).So,Please give me the complete of this code.

2045


What is a record lock error?

1259


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

546


What is ment by record level identifier?

645


If my rpg program has a date field, what extra care I have to take while compiling that rpg program? If the file is keyed and I have declared the file as well as key list properly in my program. Still am getting an error message like "chain/reade operation is not allowed" what may be the case?

611