How I can reread the physical file in CL program once the
end of file reached in same CL program.
Answer Posted / mathi
The PF must be opended using OPNDBF or OPNQRYF in CL. Then
using POSDBF OPNID(Filename) POSITION(*START) command we
can make the cursor to point to begining of the file.
| Is This Answer Correct ? | 3 Yes | 10 No |
Post New Answer View All Answers
Interviewer asked me write down DDS for load all subfile .can anybody write dds
what is an online rpg?
what is the procedure and explain about real time scenario.
how do you use commitment control in rpg?
what is data area and how it is used in rpg program ?
Please tell me how to read the records from a file with load an array of size with error conditions(The logic answer for this question is ARR is array of 99 elements Z-ADD 0 IDX *LOVAL SETLL FILE READ FILE 99 *IN99 DOWEQ *OFF IDX ANDLT 99 ADD 1 IDX MOVE FIELD ARR,IDX READ FILE 99 ENDDO).So,Please give me the complete of this code.
1. What is bound-by-call and bound-by-reference? 2. Where and why is *Nomain used? 3. What are the difficulties faced by programmers when using service programs? 4. Explain the different ways of parsing and compiling XML in iSeries.
what is the rpg system?
Suppose we have one database file and it is used by 5 programs and in 3 program we have to add some records in datbase file s what is the impact on other program?
How to define data area in RPG program? In which scenario multi occurrence DS is use in AS400?
How to select highest score of each subject or how to select highest income of every month?
what is the difference between do while and do until?
When we have a file with Duplicate records and I want to read the unique record from the file. For example a file containing Emp Name as 'Ram' and there are 3 entries of it. So how to read a unique record from File?
How to write record if no field or the field are different in physical file in rpgle ?
How would display prime numbers using CL program?