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?

Answers were Sorted based on User's Feedback



1.I Have a physical file , i want to read the data from the each and every member of the File in t..

Answer / 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

1.I Have a physical file , i want to read the data from the each and every member of the File in t..

Answer / gagan44

Using DSPFD we get all the memebers in an outfile .Then use the command OVRDBF to override each member in outfile

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More RPG400 Interview Questions

How to declare the pull button in AS/400..

0 Answers  


How to identify the object has compiled with the debug view as *source without using STRDBG?

6 Answers  


1. Which Built-In-Function will you use to achieve the following functionality? CLONO1NO2NO3 Factorl÷÷+OpcdeFactor2++÷ResultLenDHHiLoEq C QTY IFLT *ZERO C QTY MULT -1 QTY C ENDIF a) %ABS b) %TRIM c) %TRIMS d) %UNS

3 Answers   IBM,


What is the name of default out queue when user logs inn to syatem with valid profile?

3 Answers   IBM,


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?

0 Answers  






Hi, I am getting the error in RPG (All Record Formats for externally-described file ABCD ignored or dropped due to error; file ignored.) Please suggest any

2 Answers   Satyam,


what will happen two jobs have same name are submitted

5 Answers   CTS,


Suppose we add one field in physical file and this physical file is used by several programs.how do we know which program is using that file? What are the impact analysis.

6 Answers  


How to declare the dynamic(run time) array in rpgle? can you please give example

2 Answers   Polaris,


Have a join logical file with more than one members with different record formats. So how can we read the different members from this file and also how we can read the different record format from the join logical?

3 Answers  


please guys help me,I need to write a program that shows more than one way to display a subfile. Both views are of the same file but sorted differently and show different fields of the same file when the user presses a function key. send me code

4 Answers   Virtusa,


parameters cannot be passed in which one???

4 Answers   CTS,


Categories