How to read alternative records in a pf by using rpg?

Answer Posted / uday bagdi

we can create the pre-run time array so that data-base file come in our rpg program then we read that pre-run time array with loop and increment the array indexing by 2

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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?

770


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

1296


How can we override a file during runtime in rpg?

689


do you use message subfiles? What are the necessary keywords required coding a message subfile?

688


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

548






is this a rpg channel?

681


what is kids-rpg?

668


what is the use of sflnxtchg?

804


are there any useful c runtime apis that I can call from rpg iv?

700


How to create a login screen using a command instead of display file.... intention is to get a password field on a command..... how do you achieve this...

1313


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.

2200


Assume 2 users are using the same file and first user updates some record in the file. Will the 2nd user will be able to see the updated record or not?

517


What is the purpose of record level identifier?

729


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

747


what are the key words you must use when using a subfile?

693