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

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  


how to add a new field to a file without compiling it?

1 Answers  


How to know the particular record in pf with out reading?

0 Answers  


Last statement of any rpg program is lr?

0 Answers  


What is the interactive job?

0 Answers  






What is the use of member in pf?

0 Answers  


In a CL Program after executing a SQL SP how to receive a Output value from the SP. Just to make it clear I am sending 2 input and 1 output parameter to the SQL Stored Procedure. Now while receiving it output parm it is failing.

0 Answers   Nous,


Why we create the Physical File Member?

5 Answers  


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

5 Answers   Accenture,


hi iam very new to as400. i had created one physical file can any one tell command to enter data in to that

9 Answers   Encore,


How to insert more than one record to a pf at a time?(Bulk insert to a pf)

9 Answers  


What is the primary file?

0 Answers  


Categories