Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


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



Suppose in CL we reach at end of file and again we have to reach from 1 record..

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

Suppose in CL we reach at end of file and again we have to reach from 1 record..

Answer / ravi kumar

Hi Frnds,

I have tried with POSDBF but i can not reach. please post 1 example if possible

Is This Answer Correct ?    0 Yes 0 No

Suppose in CL we reach at end of file and again we have to reach from 1 record..

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

Post New Answer



More RPG400 Interview Questions

what is decimal data error? when it will come and how to achieve(rectify) this error please give me solution as well as code

2 Answers   IBM,


How to read alternative records in a pf by using rpg?

8 Answers   IBM,


1.find most occurrences of a character. for exm: input:aaabbbbdddddyyy output: d 5 times how can i get that?

13 Answers   HCL,


What would be the effect on the field where reverse image, underline and high intensity?

7 Answers   IBM,


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

0 Answers  






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?

8 Answers   HCL,


How can we override a file during runtime in rpg?

0 Answers  


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?

0 Answers  


How to find d key field of a pf that doesn’t have source physical file?

2 Answers  


What are the necessary keywords required to code a message subfile?

3 Answers  


What is the purpose of Panel Groups?

4 Answers  


how to run only 10 modules of existing N modules in service program in RPGILE ?

3 Answers   Wipro,






Categories