1.I Have a physical file , i want to read the data from the
each and every member of the File in the CL Program.How do
you achieve this.
2.How do you do the same in RPG?. do think is it possible to
read data from all the members in the RPG?

Answer Posted / sivaprasad

in CL

by OVRDBF we can load the data from all members in file.

OVRDBF FILE(INPUT) TOFILE(PAYROLL) MBR(*all)

in RPG

by EXTMBR(*all) can load the data from all members in file

Is This Answer Correct ?    18 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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?

619


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?

768


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.

2199


what is a rpg?

701


How many program bind in one module....

2121






how do you use commitment control in rpg?

757


1.Load an runtime array of length 99 from the pf and you want to handle all the possible errors?

2373


How would display prime numbers using CL program?

5680


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

1260


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


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

716


1. If there are two programs using same file and 2 users are using the file at the same time and what can be done to allow them both to access? 2. How can remove lock from the file for accessing it by both users?

493


what is kids-rpg?

667


How to handle duplicate error handling in RPG?

1680


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

747