Suppose you have 3 members in a database file. How to read
records from all the members without using CL (OVRDBF) i.e.
Entire process should be handled exclusively in a RPG program?

Answers were Sorted based on User's Feedback



Suppose you have 3 members in a database file. How to read records from all the members without usi..

Answer / kcsyam

use EXTMBR('*ALL') keyword on F specification

Is This Answer Correct ?    16 Yes 1 No

Suppose you have 3 members in a database file. How to read records from all the members without usi..

Answer / milan kumar banerjee

One way could be using CPYF copy all the members into a
single member of a file and then process the new file in
the RPG.

Is This Answer Correct ?    3 Yes 0 No

Suppose you have 3 members in a database file. How to read records from all the members without usi..

Answer / phalgun

Use OVRDBF command in RPG using QCMDEXC

Is This Answer Correct ?    2 Yes 0 No

Suppose you have 3 members in a database file. How to read records from all the members without usi..

Answer / murali

It is not possible to read all the members through OVRDBF, you need to override the file in the CL and use use EXTMBR('*ALL') keyword on F specification in RPGLE

Is This Answer Correct ?    2 Yes 0 No

Suppose you have 3 members in a database file. How to read records from all the members without usi..

Answer / as400 gem

The above answer is perfectly right!

Is This Answer Correct ?    0 Yes 0 No

Suppose you have 3 members in a database file. How to read records from all the members without usi..

Answer / prasanh

Hello, EXTMBR key word can be used in RPGLE program, but the
question is how to use it in RPG?

Is This Answer Correct ?    0 Yes 0 No

Suppose you have 3 members in a database file. How to read records from all the members without usi..

Answer / ravikumar

2nd and 3rd answers are correct...

Yes, EXTMBR(*ALL) is used in RPGLE program...

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More RPG400 Interview Questions

To check the locks , we use cmd WRKOBJLCK , but how we confirm whether it's objeck lock / member lock. I confused with the Lock type and Status values...Can any body please tell me ...

5 Answers  


I am reading a file in CL program. and MONMSG CPF0864 has arrived means EOF has arrived. Now i want to read this file again. How i can do this?

5 Answers   CitiGroup, Symphony,


What is the purpose of PUTOVR keyword?

2 Answers  


Why there is invention of RPG if we can do insert update delete in CL through SQL.Why the rise of RPG?

1 Answers   Infogain,


what is the use of sflnxtchg?

0 Answers   IBM,






RETRIVING DELETED RECORDS :- I'm frequently asked how to retrieve deleted records from an unjournaled physical file when the deleted records have not yet been removed from the file. Utility UNDEL lets you undelete records in a physical file. This public domain program is available in CISC and RISC versions, and the complete source code is available for download at: UNDEL for AS/400 Save File (RISC): http://www.as400network.com/sharewarefiles/undelris.zip UNDEL for AS/400 Save File (CISC): http://www.as400network.com/sharewarefiles/undel.zip UNDEL for AS/400 Save File (Source code): http://www.as400network.com/sharewarefiles/undelsrc.zip The utility takes advantage of the fact that deleted records in physical files are only flagged as deleted, and the record data still exists until it is overwritten or the file is reorganized with a utility such as RGZPFM. UNDEL simply reads the deleted record, then reuses the record by writing over it with the new record (thus eliminating the flag for the deleted record). Some homegrown and commercial utilities copy the file containing undeleted records to a save file, then use a program to read the save file, which contains live and undeleted records, to a file to undelete the records. The UNDEL utility is superior to the SAVF technique because there's no need to copy the file to a save file, which is especially important for really large files. When run, UNDEL displays the physical file records in their unformatted, raw text form. You can either position the display to a given relative record number or use F19 or F20 to find the previous and next deleted record, respectively. The utility also includes online help, which is almost unheard of for free utilities. Other utilities include the ability to undelete records. You can use the RTVDLTRCD command in the old QUSRTOOL (no longer supported by IBM). QUSRTOOL is now a commercial product called TAA Productivity Tools ( http://www.taatool.com ). The free file editor WRKDBF has a built-in undelete capability ( http://www.wrkdbf.com ), and several commercial file editors can undelete records. For a complete list of file editors, go to http://www.sourcebook400.com, select "Programmer Tools" under "Product Category," then select "File Editors."

0 Answers  


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

0 Answers  


what is decimal data error? when it will come and how to achieve(rectify) this error please give me solution as well as code

2 Answers   IBM,


difference between 1:%found and %equal built function in detail with example .

6 Answers   Polaris,


what is the procedure and explain about real time scenario.

0 Answers   Adhoc Technologies, Hanuman Automation, HSBC, IBM,


1.String operatio such as moving the characters to the variables? 2.what are the building functions for check file longs? 3.which of the following methods will make externally describe file fields available to a program? A: A/copy statement that specifies the library file and member of the field reference file source code B: A data structure definition specification that names the file on the EXTNAME keyword C: A data structure definition specification that names the file on the IMPORT keyword? D: A Definition specification for each desired field with the REFFLD keyword

1 Answers   CSC, CTS,


How to define data area in RPG program? In which scenario multi occurrence DS is use in AS400?

0 Answers  


Categories