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

what is open data path? and what is the diff b/w access path and open data path?

3 Answers   Cap Gemini,


What is the interactive job?

0 Answers  


What is the primary file?

0 Answers  


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  


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

1 Answers  






How we can't update join logical files?

10 Answers  


how to know total no of records in pf with out using sql??????

3 Answers  


How to retrieve a physical file after deleting that ? what is keyword used for that....??

6 Answers  


If we use the file level keywords like LIFO, FIFO, FCFO in a file, can we see the impact of it by doing the run query of the file? if not how can we see the impact of these keywords.

2 Answers  


Can we concatenate fields in physical file? If yes how can we do?

0 Answers  


What is the purpose of the chain and setll and setgt?

0 Answers  


how can i know logical file belongs to which physical file without source?

3 Answers   Cap Gemini,


Categories