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
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?
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?
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
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 data area and how it is used in rpg program ?
How to write record if no field or the field are different in physical file in rpgle ?
what is the necessary keyword needed to scroll subfile records?
What is a record lock error?
Program to read marks of 10 students for 4 subjects and compute and display total marks and status of each student in rpg
What is the difference between iter and do?
How do u design a physical file, when you have 2 Unique fields like for eg in A student file student ID and student examination no both are unique
what is *place and *auto keyword in prtf ?plz explain
How to call one program from another program in RPG? please help me with the code
How Chain operation copies the record's data to the input buffer for the program?
how does the rpg element work?