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 would display prime numbers using CL program?

5697


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


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

729


How many program bind in one module....

2134


how does the rpg element work?

731






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

1094


We have job which is running as batch. It takes atleast 06 hours to complete tht job. But I wanna do tht job with in 3 hours?

786


what is a rpg?

709


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.

5443


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

681


How to call one program from another program in RPG? please help me with the code

1269


What is the purpose of record level identifier?

737


How to select highest score of each subject or how to select highest income of every month?

1303


how do I play {insert rpg system here}?

595


Explain mdt?

672