Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

I know chain keyword retreive records randomly but how chain keyword exactly works internally????

4 Answers  


what do you mean by an input subfile, what are the keywords required?

0 Answers   IBM,


how to retrieve particular field records from a physical file,say i have a physical file called 'employee' in it i have to retrieve the records of a field 'admin' present in pf 'employee' using rpg,but i should not use logical file or openquery file.

3 Answers   iGate, Wipro,


What will be the value of STRING after line 0106 is executed in the code below? 0101 E* Fromfiletofile..tabnameprnentlenpdatabnamlenpda 0102 E ARR 8 1 0103 ISTRING DS 0104 I 1 8 ARR 0105 C MOVE *BLANK STRING 0106 C MOVEA'ABC' ARR A) 'AAAAAAAA' B) 'BBBBBBBB' C) 'CCCCCCCC' D) 'ABC ' E) ' ABC'

2 Answers  


check existence of one record without using chain or read?

1 Answers   IBM,


what are the parameters of jobd?give in detail.&what are the parameters of subsystem...????

1 Answers   CTS,


How do you know if a record exists without doing a READ and CHAIN?

6 Answers   IBM,


are there any useful c runtime apis that I can call from rpg iv?

0 Answers   IBM,


Hi, Can anybody give me real sinario for SFLRCDNBR?with example?

2 Answers  


I am Submitting one job in batch that job calls three progams(PGMA, PGMB, PGMC). PGMB should be called after sucessfully completion of PGMA as like for PGMC also. So Can you please tell me how can we do that (without using data area)

2 Answers   CTS,


if there is a module object , how to find the program object for this module object.Assume the module object name and program object name is not same.

0 Answers  


How can a screen field that has changed since the last output operation be detected?

4 Answers   IBM,


Categories