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

1)how to do date validation in rpg? 2)how to delete dUPLICATE RECORDS?

12 Answers   IBM, Opus,


how do u find whether a record is locked or not??/

5 Answers   CTS,


1.If *HIVAL SETGT is used what opcode is used to read a record? A:READ B:READPE C:CHAIN D:READP 2.How to pass numeric parameter to the rpg pgm from the command line? 3.What keyword is used on the rpg 4 definition specification to rename a subfile in an externally definition data structure? A:RENAME B;LIKE C:EXTNAME D:EXTFLD

4 Answers   Manhattan,


what was the robotech rpg?

0 Answers   IBM,


what is post opcode do

1 Answers   CTS,






What is significance of a file designated as a Primary file in Rpg400 program....also what's use of secoundry file

1 Answers  


Given the following code, what is the value of RESULT? DName+++++++++++ETDsFrom+++To/L+++IDc.Keywords+++++++++++++ D RESULT S 5 0 C EVAL RESULT = (2 + 3 * 2) ** 2 / 2

2 Answers  


can anybody help me that what is the procedure of debugging the service program?

3 Answers   CSC,


1.Load an runtime array of length 99 from the pf and you want to handle all the possible errors?

0 Answers   HCL,


WHAT IS MENT BY RECORD LEVEL IDENTIFIER ? WHAT IS THE PURPOSE OF THIS?

1 Answers  


We have a Physical file, after reading 5 records,it has to read LF of that same Physical file,Will it start reading from Ist record or will start reading from 5th record?

5 Answers   Hexaware,


IN RLU what are the record level keyword is used?

5 Answers   iGate, TCS,


Categories