How can read PF in reverse order (end to start) in CL pgm..

Answer Posted / shyam

Use OVRDBF Share(*yes)
Use the Openqry file by specified the values on opnqry file

Key field . . . . . . . . . . *NONE
Key field order . . . . . . . *DESCEND

now read file using RCVF command.

Is This Answer Correct ?    26 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how can you display specific subfile page on the screen in unequal subfile?

676


What is difference between bind by copy and bind by reference?

1732


How can we know running job is batch or interactive?

659


how does the rpg element work?

718


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.

5421






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?

622


write an RPG program to calculate the marks of 5 students (A,B, C, D, E)in 3 different subjects (eng, math, sci) an display on the screen

831


Program to read marks of 10 students for 4 subjects and compute and display total marks and status of each student in rpg

718


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.

755


When it is desirable to describe files Internally?

1190


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

1022


what is the use of sflnxtchg?

805


How to handle duplicate error handling in RPG?

1683


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.

2201


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

748