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

Interviewer asked me write down DDS for load all subfile .can anybody write dds

0 Answers  


Hello, I want to extend a length of field in my Display file(Subfile). Please suggest the possible steps. Thanks

3 Answers  


What is the Record Address file. How can we use it in RPG program?

4 Answers  


How to set on/off a group of indicators in a single statement?

3 Answers  


1.How can you search an entire source file for a particular field name? 2.How can you find the differences between two versions of the source for the same program? 3.What is a hidden field as it relates to a sub file? 4.How do you display a sub file that has no records in the sub file?

8 Answers   HCL,






how can we find setll setgt chain read reade readp operations are successfull or not,give example.explain in detail.

4 Answers   iSoft, Wipro,


what are the parameters of jobd?give in detail.&what are the parameters of subsystem...????

1 Answers   CTS,


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.

2 Answers  


3. Given the DOS Specification below and the following information: • Indicator 50 is off • No records have been written to the subfile What will be the result if the EXFMT operation code is performed on the record format CTLR? A R SUBFL A DESCRIP 101 6 1ODSPATR(UL) A DFT(’NOT FOUND’) A R CTLR SFLCTL(SUBFL) A N50 SFLDSP A SFLDSPCTL A SFLINZ A 67 SFIJEND A SFLSIZ(13) A SFLPAG(12) A ACCOUNTNO 100 S 10 a.) Only AccountNo will display b.) SUBFL will be initialized with 13 blank records c.) An I/O exception error will occur d.) The screen will display 12 records with ‘NOT FOUND’

4 Answers   IBM,


How we will read call stack?

4 Answers  


If there are 1000 member(PGM type) in a SRC file. How can we compile in a CL program? ( It need to be done in a loop)?

1 Answers  


When will DUMP & DEBUG be ignored?

3 Answers   IBM,


Categories