if there is pf in two libraries and there is a logical file
based on the PF, how to find the pf on which the pf is based.

Answers were Sorted based on User's Feedback



if there is pf in two libraries and there is a logical file based on the PF, how to find the pf on ..

Answer / joy mukherjee

Use DSPFD with the logical file name, you will get the
physical file name associated with that logical file.

Is This Answer Correct ?    17 Yes 1 No

if there is pf in two libraries and there is a logical file based on the PF, how to find the pf on ..

Answer / aa

Use command DSPDBR on each PF qualified with the library name. The LF will be displayed in the PF to which it belongs.

Is This Answer Correct ?    8 Yes 1 No

Post New Answer

More RPG400 Interview Questions

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,


Difference between creating a report using Printer file and WRKQRY(Query Report) ?

3 Answers  


What is the difference between copybooks and subprocedures in as400?

0 Answers  


what procedure should we use to find whether the following operations are successful or not setll setgt chain read reade readp pls tell with example i'm not lazy to read the manual or not lazy to do anything.but sometimes i cannot understand the things given in manual in high level english its little bit complicated for me,i can't understand their way of writing thats why i ask these questions here and find the solution in simple words that i can understand thats the real reason sir.sorry if i had hurt you or disturbed you.please understand my situation.

5 Answers   iGate,


i)What is the command to lock a file in a program ii)2. Can you get a level check error in a CL program

6 Answers  






What is the significance of UDATE?

5 Answers   IBM,


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,


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  


How to read alternative records in a pf by using rpg?

8 Answers   IBM,


In ProgramB there is a SBMJOB, which is a call to program C .There is also a CALL to program D from B. How would you check the program C has been executed in D?

4 Answers  


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

4 Answers   CTS,


In a particular program one file is used where override command is applied to a file, now this program calls another program where we want to use the same file but without override.How it can be done?

6 Answers   Hexaware,


Categories