Suppose in CL we reach at end of file and again we have to reach from 1 record
Answers were Sorted based on User's Feedback
Answer / surya
We can use POSDBF command in CL program
This command sets the record position of the database file that is opened with OPNID(XXX) to the starting position of the database file member that is currently open.
POSDBF OPNID(XXX) POSITION(*START)
|Is This Answer Correct ?||4 Yes||0 No|
Answer / ravi kumar
I have tried with POSDBF but i can not reach. please post 1 example if possible
|Is This Answer Correct ?||0 Yes||0 No|
Answer / nitin
We can use OVRDBF and position file to *START
i.e. OVRDBF FILE(EMPLOYEE) POSITION(*START)
|Is This Answer Correct ?||0 Yes||1 No|
what is decimal data error? when it will come and how to achieve(rectify) this error please give me solution as well as code
How to read alternative records in a pf by using rpg?
1.find most occurrences of a character. for exm: input:aaabbbbdddddyyy output: d 5 times how can i get that?
What would be the effect on the field where reverse image, underline and high intensity?
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
1.How can you search an entire source file for a particular field name? 2.How can you find the differences between two versions of the source for the same program? 3.What is a hidden field as it relates to a sub file? 4.How do you display a sub file that has no records in the sub file?
How can we override a file during runtime in rpg?
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?
How to find d key field of a pf that doesn’t have source physical file?
What are the necessary keywords required to code a message subfile?
What is the purpose of Panel Groups?
how to run only 10 modules of existing N modules in service program in RPGILE ?