3 members in a databasefile .how to read records from all
the members?????????

Answers were Sorted based on User's Feedback



3 members in a databasefile .how to read records from all the members?????????..

Answer / samul

OVRDBF FILE(TEST)
TOFILE(*LIBL/TEST)
MBR(*ALL)

before calling pgm,execute above cmd.

cheers...

Is This Answer Correct ?    9 Yes 3 No

3 members in a databasefile .how to read records from all the members?????????..

Answer / reena

there are 2 ways.

1. using OVRDBF
2. By creating and LF.

Is This Answer Correct ?    3 Yes 0 No

3 members in a databasefile .how to read records from all the members?????????..

Answer / prabakaran

Using EXTMBR

Is This Answer Correct ?    3 Yes 1 No

3 members in a databasefile .how to read records from all the members?????????..

Answer / ravi kumar

1. Through RPG, using EXTMBR(*All)
2. Through CL, OVRDBF FILE(TEST) TOFILE(*LIBL/TEST)MBR(*ALL)

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More RPG400 Interview Questions

Can we found a record existance in a file w/o reading the file?

6 Answers   Traitsys Technologies,


Can a run time array be declare like below with no specified number of elements ? Is it possible ? DFLD_ARRAY 7 DIM() INZ(*blanks) What does this mean ? Does this mean that the number of array elements will be dynamically declared during run time ?

1 Answers   TCS,


1. If my rpg program has a date field, What extra care I have to take while compiling that RPG program? 2. 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?

6 Answers   Virtusa,


what is the difference between SETON RT & RETURN?

5 Answers  


can anyone say,what is the use of operation extended H/N/P?

2 Answers  






Q:Hi all,i want accurate answer with code using in built functions.please sent me code as soon as posible. I have program nmed PGM1 which '' RETRIEVE Current production date''should correctly default the production date for the user who is issuing raw materials to the manufacturing.The production date can be different from the celendra date. However, the program does not make the correct adjustment for all manufacturing plants. there is a parameter which determines the production start time e.g. 07:00 if the system time precedes this,the program subtracts one from the celendra day.This work fine when the celendar day starts after production day as it does in England,the system should be adding one to the celendar day during the overlap. unfortunately the program was desined to assumed the celendar day always starts before the production day. Change required in the program: Change the PROGRAM PGM1 to use the new parrameter to decide whether to add or subtract 1 from the celendar day when determining the production date.

0 Answers   TCS,


Are all these RPG/400 Interviewed Questions being asked recently? are current?

1 Answers  


Suppose my file has 10 fields and I want to make the 2nd field zeros in all records. And assume I have millions of records and I dont want to read each record and update the desired field with 0. Any other way to do this in one step operation?

1 Answers  


Hi, Can anybody give me real sinario for SFLRCDNBR?with example?

2 Answers  


Can we possible to key with the date field?

1 Answers   IBM,


What will be the value of STRING after line 0106 is executed in the code below? 0101 E* Fromfiletofile..tabnameprnentlenpdatabnamlenpda 0102 E ARR 8 1 0103 ISTRING DS 0104 I 1 8 ARR 0105 C MOVE *BLANK STRING 0106 C MOVEA'ABC' ARR A) 'AAAAAAAA' B) 'BBBBBBBB' C) 'CCCCCCCC' D) 'ABC ' E) ' ABC'

2 Answers  


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?

2 Answers   Cap Gemini,


Categories