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...

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

Answer Posted / abhishek bajpai

hi Shobhit,

POSDBF and OVRDBF can only position the file at the desired
location if the file hasn't reached EOF yet. If the file is
already at EOF, then thesekeywords won't help you in
positioning the cursor.
However, there is one keyword recently added to the CL
commands and that is 'CLOSE'. After the file is at EOF
mark, you can close it by using this keyword and the next
RCVF keyword will retrieve the first record again, or u can
position the cursor anywhere using POSDBF or OVRDBF.

Thanks

Is This Answer Correct ?    15 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

thanks mr.Harshad R Suryawaunshi,i'm new to as400 i think you are telling in rpgile i know only rpg400 if possible can you tell in rpg400

2301


is this a rpg channel?

1154


do you use message subfiles? What are the necessary keywords required coding a message subfile?

1112


what is the rpg system?

1257


How to create a login screen using a command instead of display file.... intention is to get a password field on a command..... how do you achieve this...

1862


How to call one program from another program in RPG? please help me with the code

1706


What are the types of identifiers?

1006


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

1143


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.

2610


during execution, an rpg/400 program automatically follows a sequence of operations for each record that is processed. The built-in program cycle includes the following logical steps.

1200


What is file identifier where we can use?

1114


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

1233


Interviewer asked me write down DDS for load all subfile .can anybody write dds

1705


can anybody help me to solve this problem. the program that i m checking display error message saying "Record format for file AJDSPFFD does not match model file and decimal error. how to solve this problem. The AJDSPFFD is snapshot the AJTLOG that is the audit trail list.

2783


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

1002