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 know logical file belongs to which physical file without source?

1 Answers  


what is the difference between adding keys & constraints into a phisical file

6 Answers   HSBC,


WHAT IS THE DIFFERENCE BETWEEN 'COLHDG' AND 'ALIAS'?

5 Answers   Accenture,


I have physical 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?

0 Answers  


pls anyone explain about compile time array,pre run time array run time array

4 Answers  






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

1 Answers  


what is the difference between adding keys & constraints into a phisical file

4 Answers   HSBC,


When u create a PF and did not fill up Maint parameter, then by default which access path will the system take & why

2 Answers   HCL,


What is the use of member in pf?

0 Answers  


how can we write LF using flatfile.

9 Answers  


Where the QTEMP library will get created? if the the answer is QSYS, then howcome more than one job can create same library name(QTEMP) in QSYS? what is the uniqueness of QTEMP? For example, run the below command in different workstation WRKOBJ QSYS/QTEMP And take 8 in the option to check the description. both will have different info. so where(which LIB) exactly the QTEMP is stored?

2 Answers  


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

0 Answers  


Categories