How can read PF in reverse order (end to start) in CL pgm..
Answer Posted / suresh
Since the requirement is to Read from end to start, the
parameter *END should be provided to Position.
The statement should look like:
POSDBF OPNID(file name) position(*END)
Is This Answer Correct ? | 16 Yes | 15 No |
Post New Answer View All Answers
what is file information data structure?
How to define data area in RPG program? In which scenario multi occurrence DS is use in AS400?
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 a record lock error?
How Chain operation copies the record's data to the input buffer for the program?
Explain mdt?
How to declare the pull button in AS/400..
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?
what is an online rpg?
If my rpg program has a date field, what extra care I have to take while compiling that rpg program? If the file is keyed and I have declared the file as well as key list properly in my program. Still am getting an error message like "chain/reade operation is not allowed" what may be the case?
How can we override a file during runtime in rpg?
How to handle duplicate error handling in RPG?
what is a rpg?
How to write record if no field or the field are different in physical file in rpgle ?