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
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
is this a rpg channel?
do you use message subfiles? What are the necessary keywords required coding a message subfile?
what is the rpg system?
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...
How to call one program from another program in RPG? please help me with the code
What are the types of identifiers?
are there any useful c runtime apis that I can call from rpg iv?
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.
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.
What is file identifier where we can use?
which program rpg or cl is efficent to update a transaction onto a database file and why ?
Interviewer asked me write down DDS for load all subfile .can anybody write dds
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.
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