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


Please Help Members By Posting Answers For Below Questions

what is file information data structure?

1392


How to define data area in RPG program? In which scenario multi occurrence DS is use in AS400?

1569


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.

2209


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.

762


What is a record lock error?

1280






How Chain operation copies the record's data to the input buffer for the program?

1094


Explain mdt?

672


How to declare the pull button in AS/400..

1890


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?

520


what is an online rpg?

741


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?

630


How can we override a file during runtime in rpg?

699


How to handle duplicate error handling in RPG?

1700


what is a rpg?

709


How to write record if no field or the field are different in physical file in rpgle ?

498