how to update physical file using logucal file with example



how to update physical file using logucal file with example..

Answer / chinu

Declare the logical file in update mode in the RPG program.

Chain at the record needed to be updated and afer changing
the field value use UPDATE opcode with the record format
name of the LF.The record gets updated

Is This Answer Correct ?    5 Yes 3 No

Post New Answer

More DB400 Interview Questions

How to read a PF in reverse(from last rec to first) using CL?

3 Answers   HCL,


How to find the list of source physical files in a library?? Is there any way to get a list??

5 Answers   Infosys,


Why journalling is compulsory before commitment control?

1 Answers  


When we create a pf and did not fill up maint parameter, then by default which access path will the system take & why?

0 Answers  


Suppose I have a pf, it contains 5 members, how to access particular member data from logical file? What is the use of member in pf?

0 Answers  






Is it possible to create a logical file whose Physical file is not in same library?

6 Answers  


I had created one physical file tell me command to enter data in to?

1 Answers  


Hi, Please give the answer to this question? I have Phisical file with 100 records,there is no any duplicate records in this pf.Based on this pf one Logical file i have used.But this lf is viewing only 80 records only of that pf?What is the reason for this?Please give me answer?

4 Answers   IBM,


Which keyword is used both in subfile and subfile control record format of a DSPF?

8 Answers  


What is the difference between access path and open data path?

0 Answers  


What is the interactive job? What is the batch job? How to change the batch job to interactive job?

0 Answers  


Maximum how many fields we can create under a record format of PF?

5 Answers  


Categories